Loner-StrikeReference

Reference

Spatial

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

Players In Radius

valuespatial.players_in_radius

Every player within Radius of a point or an entity, as an array (an entity wired in isn't counted itself).

Inputs (3)
Around point Vector
Around point: a position or direction (X, Y, Z). Optional.
Around entity Entity
Around entity: an entity (a thing in the map).
Radius Number
Radius: a number. Leave it empty to use the setting.
Outputs (1)
Players Array of Player
Players: a list of players.
Settings (3)
Radius
A number from 1 to 8192. A wire into the pin of the same name is used instead. Default: 300.
Alive only
On or off. Default: true.
Team
Pick one: Any team, Terrorists, Counter-Terrorists. Default: any.

Nearest Player

valuespatial.nearest_player

The player nearest to a point or an entity (not the entity itself), within Max distance; nobody if none.

Inputs (2)
Around point Vector
Around point: a position or direction (X, Y, Z). Optional.
Around entity Entity
Around entity: an entity (a thing in the map).
Outputs (2)
Player Player
The player.
Distance Number
Distance: a number.
Settings (4)
Max distance
A number from 1 to 16384. Default: 8192.
Alive only
On or off. Default: true.
Team
Pick one: Any team, Terrorists, Counter-Terrorists. Default: any.
Who
Pick one: Bots and people, People only, Bots only. Default: all.

Entities In Radius

valuespatial.entities_in_radius

Entities within Radius of a point or an entity, of a class or any, as an array (up to the mode's Limits setting, 64 at first). Players aren't listed (use Players In Radius).

Inputs (3)
Around point Vector
Around point: a position or direction (X, Y, Z). Optional.
Around entity Entity
Around entity: an entity (a thing in the map).
Radius Number
Radius: a number. Leave it empty to use the setting.
Outputs (1)
Entities Array of Entity
Entities: a list of entities (a thing in the map).
Settings (2)
Radius
A number from 1 to 32768. A wire into the pin of the same name is used instead. Default: 300.
Class (empty: any)
A name, as the map or the game knows it (letters, digits, _ . -).
Limits (1)
Entities one search keeps
64 by default; hosts can raise it to 2048. Above 256 the server may slow down.

Nearest Entity

valuespatial.nearest_entity

The entity of a class nearest to a point or an entity, within Max distance; nothing if none. Players aren't counted.

Inputs (2)
Around point Vector
Around point: a position or direction (X, Y, Z). Optional.
Around entity Entity
Around entity: an entity (a thing in the map).
Outputs (2)
Entity Entity
The entity.
Distance Number
Distance: a number.
Settings (2)
Class
A name, as the map or the game knows it (letters, digits, _ . -). Default: info_target.
Max distance
A number from 1 to 32768. Default: 2048.

Line of Sight

valuespatial.line_of_sight

Is there a clear line between A and B (each an entity or a point)? Entities wired in don't block it (a player's eyes are used). Hit Position is where something got in the way.

Inputs (4)
A Entity
A: an entity (a thing in the map).
Or point A Vector
Or point A: a position or direction (X, Y, Z). Optional.
B Entity
B: an entity (a thing in the map).
Or point B Vector
Or point B: a position or direction (X, Y, Z). Optional.
Outputs (2)
Clear Yes/No
Clear: yes or no.
Hit position Vector
Hit position: a position or direction (X, Y, Z).
Settings (1)
Creatures and players block
On or off. Default: false.

Find Free Spot Near

valuespatial.free_spot

A spot near a point where a player (or the hull you pick) fits: the point itself if it's free, else the nearest free one in rings round it, up to Max distance (at most the mode's Limits setting of tries, 64 at first). Found is no when there's none (Position is then the point).

Inputs (1)
Near Vector
Near: a position or direction (X, Y, Z). Needs a wire.
Outputs (2)
Found Yes/No
Found: yes or no.
Position Vector
The position.
Settings (2)
Size
Pick one: Player standing, Player ducking, Large (big creatures), A point. Default: stand.
Max distance
A number from 0 to 4096. Default: 256.
Limits (1)
Tries finding a free spot
64 by default; hosts can raise it to 1024. Above 256 the server may slow down.

Made from the app's own catalog (nodes.json, nodehelp.json, limits.ts), so it matches the app.