Reference
Arrays
22 Game Mode Studio nodes. Pick one for its pins, settings and limits.
flow flow.for_each_array Copy link
For Each
Loop Body Item Index# Completed
Runs Loop Body once for each item of an array (Break stops early), then Completed.
Inputs (3) Run Flow Runs this node. Break Flow Stops the loop. Array Array of the node's type Array: a list of the type set in Holds. Needs a wire. Outputs (4) Loop Body Flow Runs once for every step. Item The node's type Item: the type set in Holds. Index# Number Index: a number. Completed Flow Goes on when it's done. Settings (1) Holds What kind of values it holds. Default: number. 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.
An array of the items wired in (a new one each time it's worked out).
2 shown; add up to 8 with + Add pin.
Inputs (1) Item The node's type Item: the type set in Holds. Optional. Outputs (1) Array Array of the node's type Array: a list of the type set in Holds. Settings (2) Holds What kind of values it holds. Default: number. Items# A number from 0 to 8. Default: 2.
value array.players Copy link
An array of every player who fits.
Outputs (1) Players Array of Player Players: a list of players. 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.
Adds an item at the end (an array holds at most 10000).
Inputs (3) Run Flow Runs this node. Array Array of the node's type Array: a list of the type set in Holds. Needs a wire. Item The node's type Item: the type set in Holds. Optional. Outputs (2) Then Flow Goes on when it's done. Index# Number Index: a number. Settings (1) Holds What kind of values it holds. Default: number.
action array.insert Copy link
Puts an item in at an index (the rest move up).
Inputs (4) Run Flow Runs this node. Array Array of the node's type Array: a list of the type set in Holds. Needs a wire. Item The node's type Item: the type set in Holds. Optional. Index Number Index: a number. Leave it empty to use the setting. Outputs (1) Then Flow Goes on when it's done. Settings (2) Holds What kind of values it holds. Default: number. Index A number from 0 to 10000. A wire into the pin of the same name is used instead. Default: 0.
action array.remove Copy link
Takes out every item equal to this one.
Inputs (3) Run Flow Runs this node. Array Array of the node's type Array: a list of the type set in Holds. Needs a wire. Item The node's type Item: the type set in Holds. Optional. Outputs (2) Then Flow Goes on when it's done. Removed Yes/No Removed: yes or no. Settings (1) Holds What kind of values it holds. Default: number.
action array.remove_index Copy link
Takes out the item at an index.
Inputs (3) Run Flow Runs this node. Array Array of the node's type Array: a list of the type set in Holds. Needs a wire. Index Number Index: a number. Leave it empty to use the setting. Outputs (1) Then Flow Goes on when it's done. Settings (2) Holds What kind of values it holds. Default: number. Index A number from 0 to 10000. A wire into the pin of the same name is used instead. Default: 0.
Changes the item at an index (nothing happens past the end).
Inputs (4) Run Flow Runs this node. Array Array of the node's type Array: a list of the type set in Holds. Needs a wire. Index Number Index: a number. Leave it empty to use the setting. Item The node's type Item: the type set in Holds. Optional. Outputs (1) Then Flow Goes on when it's done. Settings (2) Holds What kind of values it holds. Default: number. Index A number from 0 to 10000. A wire into the pin of the same name is used instead. Default: 0.
action array.clear Copy link
Empties an array.
Inputs (2) Run Flow Runs this node. Array Array of the node's type Array: a list of the type set in Holds. Needs a wire. Outputs (1) Then Flow Goes on when it's done. Settings (1) Holds What kind of values it holds. Default: number.
action array.shuffle Copy link
Puts an array's items in a random order.
Inputs (2) Run Flow Runs this node. Array Array of the node's type Array: a list of the type set in Holds. Needs a wire. Outputs (1) Then Flow Goes on when it's done. Settings (1) Holds What kind of values it holds. Default: number.
action array.sort Copy link
Sorts an array (numbers by size, text A to Z, the rest by their number).
Inputs (2) Run Flow Runs this node. Array Array of the node's type Array: a list of the type set in Holds. Needs a wire. Outputs (1) Then Flow Goes on when it's done. Settings (2) Holds What kind of values it holds. Default: number. Order Pick one: Smallest first, Biggest first. Default: asc.
The item at an index (nothing, 0 or empty past the end).
Inputs (2) Array Array of the node's type Array: a list of the type set in Holds. Needs a wire. Index Number Index: a number. Leave it empty to use the setting. Outputs (1) Item The node's type Item: the type set in Holds. Settings (2) Holds What kind of values it holds. Default: number. Index A number from 0 to 10000. A wire into the pin of the same name is used instead. Default: 0.
value array.length Copy link
How many items an array has.
Inputs (1) Array Array of the node's type Array: a list of the type set in Holds. Needs a wire. Outputs (1) Length Number Length: a number. Settings (1) Holds What kind of values it holds. Default: number.
value array.contains Copy link
Is the item in the array?
Inputs (2) Array Array of the node's type Array: a list of the type set in Holds. Needs a wire. Item The node's type Item: the type set in Holds. Optional. Outputs (1) Contains Yes/No Contains: yes or no. Settings (1) Holds What kind of values it holds. Default: number.
The index of the first item equal to this one (-1 if none).
Inputs (2) Array Array of the node's type Array: a list of the type set in Holds. Needs a wire. Item The node's type Item: the type set in Holds. Optional. Outputs (1) Index Number Index: a number. Settings (1) Holds What kind of values it holds. Default: number.
value array.random Copy link
An item picked at random (a new pick each time it's worked out).
Inputs (1) Array Array of the node's type Array: a list of the type set in Holds. Needs a wire. Outputs (1) Item The node's type Item: the type set in Holds. Settings (1) Holds What kind of values it holds. Default: number.
All the numbers added up (0 for an empty array).
Inputs (1) Numbers Array of Number Numbers: a list of numbers. Needs a wire. Outputs (1) Sum Number Sum: a number.
The smallest number, and its index (-1 for an empty array).
Inputs (1) Numbers Array of Number Numbers: a list of numbers. Needs a wire. Outputs (2) Min Number Min: a number. Index# Number Index: a number.
The biggest number, and its index (-1 for an empty array).
Inputs (1) Numbers Array of Number Numbers: a list of numbers. Needs a wire. Outputs (2) Max Number Max: a number. Index# Number Index: a number.
value array.average Copy link
The numbers' average (0 for an empty array).
Inputs (1) Numbers Array of Number Numbers: a list of numbers. Needs a wire. Outputs (1) Average Number Average: a number.
action array.reverse Copy link
Turns an array round: the last item first.
Inputs (2) Run Flow Runs this node. Array Array of the node's type Array: a list of the type set in Holds. Needs a wire. Outputs (1) Then Flow Goes on when it's done. Settings (1) Holds What kind of values it holds. Default: number.
value array.slice Copy link
A new array with Count items from Start (the first is 0).
Inputs (3) Array Array of the node's type Array: a list of the type set in Holds. Needs a wire. Start Number Start: a number. Leave it empty to use the setting. Count# Number Count: a number. Leave it empty to use the setting. Outputs (1) Array Array of the node's type Array: a list of the type set in Holds. Settings (3) Holds What kind of values it holds. Default: number. Start A number from 0 to 10000. A wire into the pin of the same name is used instead. Default: 0. Count# A number from 0 to 10000. A wire into the pin of the same name is used instead. Default: 3.
Made from the app's own catalog (nodes.json, nodehelp.json, limits.ts), so it matches the app.