Reference
Flow
18 Game Mode Studio nodes. Pick one for its pins, settings and limits.
flow For Each Player Runs Each once for every player who fits, then Then. flow For Each Entity Runs Each once for every entity of a kind or with a name (at most 512), then Then. flow Pick Random Player Picks one player who fits at random (Found), or runs None. flow Pick Random Entity Picks one entity of a kind or with a name at random (Found), or runs None. flow Sequence Runs each output in turn, top to bottom. flow Do Once Lets the flow through the first time only, until Reset. flow Do N Lets the flow through N times, until Reset. flow Gate Flow coming into Enter goes through only while the gate is open. flow Flip Flop Goes to A, then B, then A again... flow For Loop Runs Loop Body once for each number from First to Last (at most 10000 times), then Completed. flow For Loop with Break A For Loop that stops early when flow comes into Break. flow While Loop Runs Loop Body while the condition is true (checked each time; at most Limit times), then Completed. flow Switch on Number Goes to the output whose case is the number (cases split by commas), or Default. flow Switch on Text Goes to the output whose case is the text (capitals don't matter; cases split by commas), or Default. flow Call Custom Event Runs a Custom Event now, with these values (every Custom Event node for it, in the graphs' order). flow Reroute A bend in a wire, to keep the graph tidy. flow Multi Gate Each time flow comes in, goes out the next output (in order, or random); after the last it stops, or starts over with Loop. flow Do Once Per Player Lets the flow through once for each player, until Reset (everyone) or Reset Player (the player wired in then).
flow flow.for_each_player Copy link
For Each Player
Break Who Team (overrides Who) Only these
Runs Each once for every player who fits, then Then. Who and Team can be wired (a variable, a Select); Only these goes through a list of players instead (Players In Radius...). Break stops early. For any list of your own, use Arrays > For Each.
Inputs (5) Run Flow Runs this node. Break Flow Stops the loop after the current player (Then still runs). Who Who Which players, as the built-in Who enum (wire a variable or a Select). Not wired: the Who setting. Values: Everyone in the game, Everyone alive, Everyone dead, Terrorists, Counter-Terrorists, Living Terrorists, Living Counter-Terrorists, Bots, People (not bots). Team (overrides Who) Team Only this team's players (connected, alive or not). Wired, it decides instead of Who. Only these Array of Player Go through these players instead of searching (from Players In Radius, a variable...). Players who left are skipped. Outputs (4) Each Flow Runs once for every item. Player Player The player. Index# Number How many players came before this one (0 for the first). Then Flow Goes on when it's done. Settings (1) Who Pick one: Everyone in the game, Everyone alive, Everyone dead, Terrorists, Counter-Terrorists, Living Terrorists, Living Counter-Terrorists, Bots, People (not bots). Default: alive. Limits (2) Loop steps a frame 20000 by default; hosts can raise it to 2000000. Above 200000 the server may slow down. Loop steps in a Function 1000000 by default; hosts can raise it to 10000000. Above 2000000 the server may slow down. Notes (2) Runs Each once for every player that matches, then Then. The Player pin is the current one inside Each. Who is the setting until something is wired into it (a variable of the Who enum, a Select); Team, when wired, decides instead. For a list you made yourself, use Arrays > For Each.
Cost: At most 32 players, so it's cheap. Inside a Repeat that ticks often, it adds up.
flow flow.for_each_entity Copy link
For Each Entity
Break Kind or name Only these
Runs Each once for every entity of a kind or with a name (at most 512), then Then. The kind or name can be wired; Only these goes through a list of entities instead. Break stops early. For any list of your own, use Arrays > For Each.
Inputs (4) Run Flow Runs this node. Break Flow Stops the loop after the current entity (Then still runs). Kind or name Text The kind (classname) or name to look for, by the Which setting. Not wired: the Kind or name setting. Only these Array of Entity Go through these entities instead of searching (from Find Entities, Entities In Radius...). Removed ones are skipped. Outputs (4) Each Flow Runs once for every item. Entity Entity The entity. Index# Number How many entities came before this one (0 for the first). Then Flow Goes on when it's done. Settings (2) Which Pick one: Of this kind (classname), With this name. Default: class. Kind or name A name, as the map or the game knows it (letters, digits, _ . -). Default: ls_respawn_point. Limits (2) Loop steps a frame 20000 by default; hosts can raise it to 2000000. Above 200000 the server may slow down. Loop steps in a Function 1000000 by default; hosts can raise it to 10000000. Above 2000000 the server may slow down. Notes (1) Cost: Searches the whole map each time it runs. Fine at a round's start; in a fast Repeat it can slow the server.
flow flow.pick_player Copy link
Pick Random Player
Who Team (overrides Who) Only these
Picks one player who fits at random (Found), or runs None. Who and Team can be wired; Only these picks from a list of players instead.
Inputs (4) Run Flow Runs this node. Who Who Which players, as the built-in Who enum (wire a variable or a Select). Not wired: the Who setting. Values: Everyone in the game, Everyone alive, Everyone dead, Terrorists, Counter-Terrorists, Living Terrorists, Living Counter-Terrorists, Bots, People (not bots). Team (overrides Who) Team Only this team's players. Wired, it decides instead of Who. Only these Array of Player Pick from these players instead of searching (players who left are skipped). Outputs (3) Found Flow Goes on when it's done. None Flow Runs when nothing was found. Player Player The player. Settings (1) Who Pick one: Everyone in the game, Everyone alive, Everyone dead, Terrorists, Counter-Terrorists, Living Terrorists, Living Counter-Terrorists, Bots, People (not bots). Default: alive.
flow flow.pick_entity Copy link
Picks one entity of a kind or with a name at random (Found), or runs None. The kind or name can be wired; Only these picks from a list of entities instead.
Inputs (3) Run Flow Runs this node. Kind or name Text The kind (classname) or name to look for, by the Which setting. Not wired: the Kind or name setting. Only these Array of Entity Pick from these entities instead of searching. Outputs (3) Found Flow Goes on when it's done. None Flow Runs when nothing was found. Entity Entity The entity. Settings (2) Which Pick one: Of this kind (classname), With this name. Default: class. Kind or name A name, as the map or the game knows it (letters, digits, _ . -). Default: info_player_deathmatch.
flow flow.sequence Copy link
Runs each output in turn, top to bottom.
2 shown; add up to 32 with + Add pin.
Inputs (1) Run Flow Runs this node. Outputs (2) Then 0 Flow Runs on Then 0. Then 1 Flow Runs on Then 1. Settings (1) Outputs# A number from 1 to 32. Default: 2. Notes (1) Up to 32 outputs: press + Add pin on the node (or set Outputs in Details); the minus by it takes the last one off when nothing is wired to it.
flow flow.do_once Copy link
Lets the flow through the first time only, until Reset.
Inputs (2) Run Flow Runs this node. Reset Flow Lets it run again. Outputs (1) Completed Flow Goes on when it's done. Settings (1) Start closed On or off. Default: false.
Lets the flow through N times, until Reset.
Inputs (3) Run Flow Runs this node. Reset Flow Lets it run again. N# Number The n. Leave it empty to use the setting. Outputs (2) Exit Flow Goes on when it's done. Counter Number Counter: a number. Settings (1) N# A number from 1 to 10000. A wire into the pin of the same name is used instead. Default: 3.
Flow coming into Enter goes through only while the gate is open.
Inputs (4) Enter Flow Runs this node. Open Flow Opens the gate. Close Flow Closes the gate. Toggle Flow Opens or closes the gate. Outputs (1) Exit Flow Goes on when it's done. Settings (1) Start closed On or off. Default: true.
flow flow.flipflop Copy link
Goes to A, then B, then A again... Is A says which it just did.
Inputs (1) Run Flow Runs this node. Outputs (3) A Flow Runs on A. B Flow Runs on B. Is A Yes/No Is A: yes or no.
flow flow.for_loop Copy link
Runs Loop Body once for each number from First to Last (at most 10000 times), then Completed.
Inputs (3) Run Flow Runs this node. First Number First: a number. Leave it empty to use the setting. Last Number Last: a number. Leave it empty to use the setting. Outputs (3) Loop Body Flow Runs once for every step. Index# Number Index: a number. Completed Flow Goes on when it's done. Settings (2) First A number from -100000 to 100000. A wire into the pin of the same name is used instead. Default: 0. Last A number from -100000 to 100000. A wire into the pin of the same name is used instead. Default: 9. Limits (2) Loop steps a frame 20000 by default; hosts can raise it to 2000000. Above 200000 the server may slow down. Loop steps in a Function 1000000 by default; hosts can raise it to 10000000. Above 2000000 the server may slow down. Notes (1) Cost: Each step runs everything wired to Body. Thousands of steps in one go can stall the server for a moment.
flow flow.for_loop_break Copy link
A For Loop that stops early when flow comes into Break.
Inputs (4) Run Flow Runs this node. Break Flow Stops the loop. First Number First: a number. Leave it empty to use the setting. Last Number Last: a number. Leave it empty to use the setting. Outputs (3) Loop Body Flow Runs once for every step. Index# Number Index: a number. Completed Flow Goes on when it's done. Settings (2) First A number from -100000 to 100000. A wire into the pin of the same name is used instead. Default: 0. Last A number from -100000 to 100000. A wire into the pin of the same name is used instead. Default: 9. Limits (2) Loop steps a frame 20000 by default; hosts can raise it to 2000000. Above 200000 the server may slow down. Loop steps in a Function 1000000 by default; hosts can raise it to 10000000. Above 2000000 the server may slow down.
Runs Loop Body while the condition is true (checked each time; at most Limit times), then Completed.
Inputs (2) Run Flow Runs this node. Condition Yes/No Condition: yes or no. Needs a wire. Outputs (2) Loop Body Flow Runs once for every step. Completed Flow Goes on when it's done. Settings (1) Limit A number from 1 to 10000. Default: 1000. Limits (2) Loop steps a frame 20000 by default; hosts can raise it to 2000000. Above 200000 the server may slow down. Loop steps in a Function 1000000 by default; hosts can raise it to 10000000. Above 2000000 the server may slow down. Notes (2) Repeats Body while the condition is true. Limit stops it after that many times, so a condition that never turns false can't freeze the server.
Careful: A loop that never ends is stopped by Limit; the Problems panel says when that happened.
flow flow.switch_num Copy link
Goes to the output whose case is the number (cases split by commas), or Default.
3 shown; add up to 16 with + Add pin.
Inputs (2) Run Flow Runs this node. Selection Number Selection: a number. Needs a wire. Outputs (1) Default Flow Runs when no case matches. Settings (1) Cases The cases, separated by commas; each gets its own flow pin. Default: 1,2,3.
flow flow.switch_text Copy link
Goes to the output whose case is the text (capitals don't matter; cases split by commas), or Default.
2 shown; add up to 16 with + Add pin.
Inputs (2) Run Flow Runs this node. Selection Text Selection: text. Needs a wire. Outputs (1) Default Flow Runs when no case matches. Settings (1) Cases The cases, separated by commas; each gets its own flow pin. Default: yes,no.
Runs a Custom Event now, with these values (every Custom Event node for it, in the graphs' order).
Inputs (1) Run Flow Runs this node. Outputs (1) Then Flow Goes on when it's done. Settings (1) Custom event Picked from this mode's own pieces.
flow flow.reroute Copy link
A bend in a wire, to keep the graph tidy. Passes on whatever comes in.
Inputs (1) in Anything in: any value. Outputs (1) out Anything out: any value.
flow flow.multi_gate Copy link
Each time flow comes in, goes out the next output (in order, or random); after the last it stops, or starts over with Loop. Reset starts again from Start index.
3 shown; add up to 32 with + Add pin.
Inputs (2) Run Flow Runs this node. Reset Flow Lets it run again. Outputs (2) Out 0 Flow Runs on Out 0. Out 1 Flow Runs on Out 1. Settings (4) Outputs# A number from 1 to 32. Default: 3. Random On or off. Default: false. Loop On or off. Default: false. Start index A number from 0 to 7. Default: 0. Notes (1) Up to 32 outputs: press + Add pin on the node (or set Outputs in Details); the minus by it takes the last one off when nothing is wired to it.
flow flow.do_once_per_player Copy link
Lets the flow through once for each player, until Reset (everyone) or Reset Player (the player wired in then).
Inputs (4) Run Flow Runs this node. Reset Flow Lets it run again. Reset Player Flow Runs Reset Player. Player Player The player. Needs a wire. Outputs (1) Completed Flow Goes on when it's done.
Made from the app's own catalog (nodes.json, nodehelp.json, limits.ts), so it matches the app.