GamerX.mp Wiki

/function

In SandboX editing mode: creates a function (checkpoint, teleport, timer, vehicle, message, menu, camera...) that runs when a call runs it: /function [type]

What it does

The main building command: /function [type]. You must be in editing mode (/editsandboxset).

Type just /function and the Choose Function Type... menu shows every type as a picture tile with its name and code, in four rows: messages and media, players, the world, and sets and flow. Click one (or CANCEL).

The function gets the next free function number (1-99). Positions come from where you stand (or sit) when you finish it.

Most types then ask for their settings in dialogs:

TypeAsks for
CM TD GT messagesThe text
TP teleport"Allow Vehicles?"
TI timerShown or invisible, then the time
PS soundThe sound ID, then "At my Location" or "Play for player"
SV vehicleSit in the vehicle first, then "Current Location" or "Spawn Vehicle for Player"
SH health0-100
GG gunThe weapon and ammo
DF destroyThe function number to undo
SP pickupThe pickup, its ammo, and sometimes "Use Pickup Attribute?"
EX explosion"Current Location" or "Explode Player"
CC cameraOpens the camera editor
CD dialogueOpens the dialogue editor
CO objectThe model number (it goes 10 m in front of you; move it with /eso, /eso2 or /so2)
MO move objectThe CO function, then move the object to its end (/eso, /eso2, /so2) and type /moveend; the speed; only there, there and back, or over and over
OH object healthThe CO function, its health, and whether to show it
ZN zoneCircle (a radius) or rectangle (walk to the other corner and type /zc), then every height or a bottom and top
LS LV LH LO object setsThe set's name (LV: then the SV function; LH and LO: then who is involved)
NP NPCA settings list (name, skin, weapon, health, team, "near" distance); click Done
NA NPC actionThe NP function, then what it does
MN menuA settings list (kind, title, text or items, buttons, who sees it); click Done
GM godmodeToggle, Enable or Disable
LP launchStraight up, forwards or backwards, then the strength (1-10)
RD randomThe functions and their odds, eg 4 50, 7 30, 9 20
LX UX SandboX setsThe set's name (UX: nothing = this set itself)
PA uploaded soundThe sound's name, then "the players involved" or "from where you stand"
CP checkpoint, FP freeze, DI disarmNothing more

Almost every type ends with "Who is involved in this function?": All Players, Trigger Player, a team, and so on.

When it's made: "\ You created function number 5 (Checkpoint) where you are standing."* (green), the game text FUNCTION CREATED... NUMBER 5 [CP], and yellow lines with what to do next: /call start 5, /call <FunctionNumber> <Condition> 5, /conditions 5 (for functions that have conditions), /editfunction 5 and /deletefunction 5.

Mistakes: "\ Sorry, "XX" is not a function type. Type /function for the menu or /functiontypes for the list."*

Example: /function CP puts a checkpoint where you stand; /call start 1 (its ID) shows it as soon as the set starts.

Short form: /func.

On these pages

Comments

No comments yet.

Log in with Discord to comment.

Suggest a change

Log in with Discord to suggest a change to this page.

Log in with Discord