Loner-StrikeReference

Reference

Arrays

22 Game Mode Studio nodes. Pick one for its pins, settings and limits.

For Each

flowflow.for_each_array

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.

Make Array

valuearray.make

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.

Players Array

valuearray.players

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.

Add

actionarray.add

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.

Insert

actionarray.insert

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.

Remove Item

actionarray.remove

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.

Remove Index

actionarray.remove_index

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.

Set Array Item

actionarray.set

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.

Shuffle

actionarray.shuffle

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.

Sort

actionarray.sort

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.

Get

valuearray.get

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.

Length

valuearray.length

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.

Contains

valuearray.contains

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.

Find

valuearray.find

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.

Random Item

valuearray.random

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.

Array Min

valuearray.min

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.

Array Max

valuearray.max

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.

Reverse

actionarray.reverse

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.

Slice

valuearray.slice

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.