GamerX.mp Wiki

/call

In SandboX editing mode: when a function's condition is met (checkpoint entered or left, pickup taken, timer ended, vehicle entered, exited or exploded), run another function; a condition can have many calls, run in order: /call [function ID] [condition] [function ID to call], or /call start [function ID] when the set starts

In the game

Usage: /call <FunctionNumber> <Condition> <FunctionToCall>

Usage: /call streak <Kills> <FunctionToCall>

When that condition of the function happens, the other function runs. A condition can have many calls,

they run in order. eg /call 4 exit 9 <- when a player gets out of vehicle 4, function 9 runs.

Type /call start <FunctionNumber> to run a function when the set starts, and /conditions for the conditions.

For every player in the set: /call death <Fn>, /call respawn <Fn>, /call streak <Kills> <Fn>.

eg /call streak 5 9 <- when a player in the set gets 5 kills in a row, function 9 runs.

What it does

Makes a call: /call [function number] [condition] [function number to call]. Editing mode only.

"When this condition of this function is met, run that function." A condition is like an event in code, and its calls are the lines of its handler: add as many as you like, and they run in call ID order.

FunctionIts conditions
(the set)start: /call start [function number] runs it when the set is activated
(the set)death: /call death [function number], when a player in the set dies
(the set)respawn: /call respawn [function number], when a player in the set spawns again
(the set)streak: /call streak [kills] [function number], when a player gets that many kills in a row
CP checkpointenter, leave
SP pickuppickup
TI timerend
SV vehicleexplode, enter, exit
CC cameraposition: use the camera editor's set call on current position
MO move objectend, start
OH object healthhit, destroyed
ZN zoneenter, leave, first, empty, everyone
NP NPCkilled, hurt, kills, injures, enters, exits, arrives, near
MN menubutton1, button2, and item1, item2... (a list) or number, other, answer1, answer2... (an input)

The game answers "\ You created call number n on function number f, condition "exit"."* and "\ On player exits the vehicle, function number t (CM) Client Message runs."*

Mistakes: "\ Sorry, function number f (CM) Client Message has no conditions..."*, "\ Sorry, "jump" is not a condition of function number f (SV) Spawn Vehicle. Its conditions: "explode", "enter", "exit"."*, "\ Sorry, function number t (the one to call) has not yet been created."* Typed with nothing after it, /call shows its usage lines.

Examples: /call start 1 = show checkpoint 1 when the set starts. /call respawn 6 = teleport 6 runs each time a player spawns again. /call streak 5 9 = function 9 runs when someone gets 5 kills in a row. /call 1 enter 2 then /call 1 enter 3 = when checkpoint 1 is entered, run function 2, then function 3. /call 7 explode 4 = when vehicle 7 explodes, run function 4.

Old name: /condition. See SandboX.

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