Loner-StrikeReference

Reference

NPCs

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

eventTalked To NPCRuns when a player presses USE on an NPC (after its greeting).eventUsed InteractableRuns when a player uses an interactable (a lever, a note, a terminal); its map targets fire too.actionSay and ChooseThe NPC (or a narrator, with none wired) says a line and the player picks a reply; each reply runs its output (later, when they pick), and Picked says which (1-6; 0 for none).actionSayThe NPC (or a narrator, with none wired) says a line to a player, or to everyone with no Player.actionSet NPC BehaviorWhat an NPC does by itself: stands, wanders near its spot, patrols its targets, or follows a player (wired into Follow) for a while.actionNPC Look AtTurns an NPC to face a player or an entity.actionSpawn NPCMakes an NPC at an entity (wired into At), a point, or the entity with this name.actionSpawn InteractableMakes an interactable at an entity (wired into At), a point, or the entity with this name: a model players use (E), with a prompt when they look at it.actionNPC Move ToSends an NPC walking (or running) to an entity or a point now, along the map's bot navigation (straight when the map has none), facing where it goes.actionNPC Follow PathSends an NPC along points in order: an array of positions, or a map's path_track chain by its first name.actionNPC StopStops an NPC's Move To or Follow Path where it is (neither Arrived nor Failed runs); it goes back to what it did, or stays.actionHostage FollowMakes a hostage follow a player (as if they pressed USE on it), any team.actionHostage StopMakes a hostage stop following and wait where it is.valueIs FollowingIs a hostage following someone, and whom.actionAs NPCCasting: is this entity an NPC (ls_npc, gm_components)?

Talked To NPC

eventnpc.on_talk

Runs when a player presses USE on an NPC (after its greeting). Leave the name empty for any NPC.

Outputs (3)
Then Flow
Goes on when it's done.
Player Player
The player.
NPC Entity
NPC: an entity (a thing in the map).
Settings (1)
NPC name
A name, as the map or the game knows it (letters, digits, _ . -).
Notes (1)

Needs Loner-Strike's components plugin, which comes with the app.

Used Interactable

eventnpc.on_use

Runs when a player uses an interactable (a lever, a note, a terminal); its map targets fire too. Leave the name empty for any.

Outputs (3)
Then Flow
Goes on when it's done.
Player Player
The player.
Interactable Entity
Interactable: an entity (a thing in the map).
Settings (1)
Interactable name
A name, as the map or the game knows it (letters, digits, _ . -).
Notes (1)

Needs Loner-Strike's components plugin, which comes with the app.

Say and Choose

actionnpc.choose

The NPC (or a narrator, with none wired) says a line and the player picks a reply; each reply runs its output (later, when they pick), and Picked says which (1-6; 0 for none). Timed out: no pick in time. Walked away: they went off, died, left or closed it. Every text can be wired (a variable, a table cell), so one node can run a whole conversation from a data table; Replies sets how many are offered (empty ones are left out). One conversation per player: a new one ends the old (as Walked away).

Inputs (13)
Run Flow
Runs this node.
Player Player
The player. Needs a wire.
NPC Entity
NPC: an entity (a thing in the map). Optional.
Speaker Text
Speaker: text. Leave it empty to use the setting.
Line Text
Line: text. Leave it empty to use the setting.
Reply 1 Text
Reply 1: text. Leave it empty to use the setting.
Reply 2 Text
Reply 2: text. Leave it empty to use the setting.
Reply 3 Text
Reply 3: text. Leave it empty to use the setting.
Reply 4 Text
Reply 4: text. Leave it empty to use the setting.
Reply 5 Text
Reply 5: text. Leave it empty to use the setting.
Reply 6 Text
Reply 6: text. Leave it empty to use the setting.
Replies# Number
Replies: a number. Leave it empty to use the setting.
Time to answer Number
Time to answer: a number. Leave it empty to use the setting.
Outputs (9)
Reply 1 Flow
Runs on Reply 1.
Reply 2 Flow
Runs on Reply 2.
Reply 3 Flow
Runs on Reply 3.
Reply 4 Flow
Runs on Reply 4.
Reply 5 Flow
Runs on Reply 5.
Reply 6 Flow
Runs on Reply 6.
Timed out Flow
Runs on Timed out.
Walked away Flow
Runs on Walked away.
Picked Number
Picked: a number.
Settings (10)
Speaker (empty: the NPC)
Text: letters, digits, spaces and plain punctuation. A wire into the pin of the same name is used instead. Up to 31.
Line
Text: letters, digits, spaces and plain punctuation. A wire into the pin of the same name is used instead. Default: Can you help me?. Up to 120.
Reply 1
Text: letters, digits, spaces and plain punctuation. A wire into the pin of the same name is used instead. Default: Yes. Up to 40.
Reply 2
Text: letters, digits, spaces and plain punctuation. A wire into the pin of the same name is used instead. Default: No. Up to 40.
Reply 3
Text: letters, digits, spaces and plain punctuation. A wire into the pin of the same name is used instead. Up to 40.
Reply 4
Text: letters, digits, spaces and plain punctuation. A wire into the pin of the same name is used instead. Up to 40.
Reply 5
Text: letters, digits, spaces and plain punctuation. A wire into the pin of the same name is used instead. Up to 40.
Reply 6
Text: letters, digits, spaces and plain punctuation. A wire into the pin of the same name is used instead. Up to 40.
Replies#
A number from 1 to 6. A wire into the pin of the same name is used instead. Default: 6.
Time to answer (0: no limit)
A number from 0 to 300. A wire into the pin of the same name is used instead. Default: 30.
Notes (1)

Needs Loner-Strike's components plugin, which comes with the app.

Say

actionnpc.say

The NPC (or a narrator, with none wired) says a line to a player, or to everyone with no Player.

Inputs (5)
Run Flow
Runs this node.
Player Player
The player. Optional.
NPC Entity
NPC: an entity (a thing in the map). Optional.
Speaker Text
Speaker: text. Leave it empty to use the setting.
Line Text
Line: text. Leave it empty to use the setting.
Outputs (1)
Then Flow
Goes on when it's done.
Settings (2)
Speaker (empty: the NPC)
Text: letters, digits, spaces and plain punctuation. A wire into the pin of the same name is used instead. Up to 31.
Line
Text: letters, digits, spaces and plain punctuation. A wire into the pin of the same name is used instead. Default: Hello there.. Up to 120.
Notes (1)

Needs Loner-Strike's components plugin, which comes with the app.

Set NPC Behavior

actionnpc.behave

What an NPC does by itself: stands, wanders near its spot, patrols its targets, or follows a player (wired into Follow) for a while.

Inputs (3)
Run Flow
Runs this node.
NPC Entity
NPC: an entity (a thing in the map). Needs a wire.
Follow Player
Follow: a player. Optional.
Outputs (1)
Then Flow
Goes on when it's done.
Settings (1)
Behavior
Pick one: Stand, Wander, Patrol, Follow. Default: stand.
Notes (1)

Needs Loner-Strike's components plugin, which comes with the app.

NPC Look At

actionnpc.look_at

Turns an NPC to face a player or an entity.

Inputs (3)
Run Flow
Runs this node.
NPC Entity
NPC: an entity (a thing in the map). Needs a wire.
Target Entity
Target: an entity (a thing in the map). Needs a wire.
Outputs (1)
Then Flow
Goes on when it's done.
Notes (1)

Needs Loner-Strike's components plugin, which comes with the app.

Spawn NPC

actionnpc.spawn

Makes an NPC at an entity (wired into At), a point, or the entity with this name. Its model is loaded with the map (models/...mdl). If the spot is blocked (Unreal's Spawn Collision Handling): Always spawn, ignore collisions (Unreal's Always Spawn: it may get stuck); Try a nearby spot, but always spawn (Adjust If Possible But Always Spawn); Try a nearby spot, don't spawn if still blocked (Adjust If Possible But Don't Spawn If Colliding); Don't spawn if blocked (Do Not Spawn); or Retry every N seconds up to M tries (0: until it's clear). Nearby means within Max distance; Moved says it was moved. Outputs: Then goes on right away; Spawned once it exists, Failed once it gives up (Retry can make these come later); Entity, Success, Moved and Failure Reason (Blocked, Out of entity slots, Limit reached, Missing file, Retries used up, Bad input) let you try a fallback, like another spot. Where: At entity (its spot, moved by Local offset along its own forward, right and up; it faces the way the entity does if Face the way At entity faces is on, turned by Rotation offset) or At position. Rotation (pitch, yaw, roll) sets the facing outright; Velocity starts it moving (a still thing then falls and slides); Scale sizes models and sprites.

Inputs (9)
Run Flow
Runs this node.
At entity Entity
At entity: an entity (a thing in the map). Optional.
At position Vector
At position: a position or direction (X, Y, Z). Optional.
Local offset (forward, right, up) Vector
Local offset (forward, right, up): a position or direction (X, Y, Z). Optional.
Rotation (pitch, yaw, roll) Vector
Rotation (pitch, yaw, roll): a position or direction (X, Y, Z). Optional.
Rotation offset Vector
Rotation offset: a position or direction (X, Y, Z). Optional.
Velocity Vector
Velocity: a position or direction (X, Y, Z). Optional.
Scale Number
Scale: a number. Leave it empty to use the setting.
Model Model
The model. Leave it empty to use the setting.
Outputs (7)
Then Flow
Goes on when it's done.
EntityN NPC
Entity: an NPC entity (an NPC handle).
Spawned Flow
Runs on Spawned.
Failed Flow
Runs on Failed.
Success Yes/No
Success: yes or no.
Moved Yes/No
Moved: yes or no.
Failure reason Spawn Failure
Failure reason: why the spawn failed (none, blocked, out of entity slots...). Values: None, Blocked, Out of entity slots, Limit reached, Missing file, Retries used up, Bad input.
Settings (12)
Or the entity named
A name, as the map or the game knows it (letters, digits, _ . -).
Model
Picked from this mode's own pieces. A wire into the pin of the same name is used instead. Default: models/barney.mdl.
Name
Text: letters, digits, spaces and plain punctuation. Default: Guide. Up to 31.
Facing (degrees)
A number from -360 to 360. Default: 0.
Behavior
Pick one: Stand, Wander. Default: stand.
Unkillable
On or off. Default: true.
If the spot is blocked
Pick one: Always spawn, ignore collisions, Try a nearby spot, but always spawn, Try a nearby spot, don't spawn if still blocked, Don't spawn if blocked, Retry every N seconds up to M tries. Default: nearby.
Max distance for a nearby spot
A number from 16 to 1024. Default: 128.
Retry every (seconds)
A number from 0.1 to 60. Default: 1.
Retry tries (0: until clear)
A number from 0 to 1000. Default: 10.
Face the way At entity faces
On or off. Default: true.
Scale
A number from 0.05 to 10. A wire into the pin of the same name is used instead. Default: 1.
Limits (1)
Visible things at once
128 by default; hosts can raise it to 1000. Above 200 the server may slow down.
Notes (1)

Needs Loner-Strike's components plugin, which comes with the app.

Spawn Interactable

actionnpc.spawn_use

Makes an interactable at an entity (wired into At), a point, or the entity with this name: a model players use (E), with a prompt when they look at it. Once: usable once a round. If the spot is blocked (Unreal's Spawn Collision Handling): Always spawn, ignore collisions (Unreal's Always Spawn: it may get stuck); Try a nearby spot, but always spawn (Adjust If Possible But Always Spawn); Try a nearby spot, don't spawn if still blocked (Adjust If Possible But Don't Spawn If Colliding); Don't spawn if blocked (Do Not Spawn); or Retry every N seconds up to M tries (0: until it's clear). Nearby means within Max distance; Moved says it was moved. Outputs: Then goes on right away; Spawned once it exists, Failed once it gives up (Retry can make these come later); Entity, Success, Moved and Failure Reason (Blocked, Out of entity slots, Limit reached, Missing file, Retries used up, Bad input) let you try a fallback, like another spot. Where: At entity (its spot, moved by Local offset along its own forward, right and up; it faces the way the entity does if Face the way At entity faces is on, turned by Rotation offset) or At position. Rotation (pitch, yaw, roll) sets the facing outright; Velocity starts it moving (a still thing then falls and slides); Scale sizes models and sprites.

Inputs (9)
Run Flow
Runs this node.
At entity Entity
At entity: an entity (a thing in the map). Optional.
At position Vector
At position: a position or direction (X, Y, Z). Optional.
Local offset (forward, right, up) Vector
Local offset (forward, right, up): a position or direction (X, Y, Z). Optional.
Rotation (pitch, yaw, roll) Vector
Rotation (pitch, yaw, roll): a position or direction (X, Y, Z). Optional.
Rotation offset Vector
Rotation offset: a position or direction (X, Y, Z). Optional.
Velocity Vector
Velocity: a position or direction (X, Y, Z). Optional.
Scale Number
Scale: a number. Leave it empty to use the setting.
Model Model
The model. Leave it empty to use the setting.
Outputs (7)
Then Flow
Goes on when it's done.
EntityK Component
Entity: a component entity (a Component handle).
Spawned Flow
Runs on Spawned.
Failed Flow
Runs on Failed.
Success Yes/No
Success: yes or no.
Moved Yes/No
Moved: yes or no.
Failure reason Spawn Failure
Failure reason: why the spawn failed (none, blocked, out of entity slots...). Values: None, Blocked, Out of entity slots, Limit reached, Missing file, Retries used up, Bad input.
Settings (12)
Or the entity named
A name, as the map or the game knows it (letters, digits, _ . -).
Model
Picked from this mode's own pieces. A wire into the pin of the same name is used instead. Default: models/w_weaponbox.mdl.
Prompt
Text: letters, digits, spaces and plain punctuation. Default: Press E to use. Up to 60.
Once a round
On or off. Default: true.
Gone once used
On or off. Default: false.
Bots may use
On or off. Default: false.
If the spot is blocked
Pick one: Always spawn, ignore collisions, Try a nearby spot, but always spawn, Try a nearby spot, don't spawn if still blocked, Don't spawn if blocked, Retry every N seconds up to M tries. Default: exact.
Max distance for a nearby spot
A number from 16 to 1024. Default: 128.
Retry every (seconds)
A number from 0.1 to 60. Default: 1.
Retry tries (0: until clear)
A number from 0 to 1000. Default: 10.
Face the way At entity faces
On or off. Default: true.
Scale
A number from 0.05 to 10. A wire into the pin of the same name is used instead. Default: 1.
Limits (1)
Visible things at once
128 by default; hosts can raise it to 1000. Above 200 the server may slow down.
Notes (1)

Needs Loner-Strike's components plugin, which comes with the app.

NPC Move To

actionnpc.move_to

Sends an NPC walking (or running) to an entity or a point now, along the map's bot navigation (straight when the map has none), facing where it goes. Arrived runs when it gets there, Failed when it can't (no way, stuck, or too long). Then it goes back to what it did, or stays there.

Inputs (4)
Run Flow
Runs this node.
NPC Entity
NPC: an entity (a thing in the map). Needs a wire.
To entity Entity
To entity: an entity (a thing in the map). Optional.
Or point Vector
Or point: a position or direction (X, Y, Z).
Outputs (3)
Then Flow
Goes on when it's done.
Arrived Flow
Runs on Arrived.
Failed Flow
Runs on Failed.
Settings (2)
Speed
Pick one: Walk, Run. Default: walk.
Stay there after
On or off. Default: false.
Limits (1)
NPC moves at once
32 by default; hosts can raise it to 64. Above 48 the server may slow down.
Notes (1)

Needs Loner-Strike's components plugin, which comes with the app.

NPC Follow Path

actionnpc.follow_path

Sends an NPC along points in order: an array of positions, or a map's path_track chain by its first name. At point runs at each one, Finished at the end (never with Loop), Failed when it can't get on. Then it goes back to what it did, or stays there.

Inputs (3)
Run Flow
Runs this node.
NPC Entity
NPC: an entity (a thing in the map). Needs a wire.
Points Array of Vector
Points: a list of positions or directions (X, Y, Z). Optional.
Outputs (4)
Then Flow
Goes on when it's done.
At point Flow
Runs on At point.
Finished Flow
Runs on Finished.
Failed Flow
Runs on Failed.
Settings (4)
Or path_track (first name)
A name, as the map or the game knows it (letters, digits, _ . -). Default: path1.
Speed
Pick one: Walk, Run. Default: walk.
Loop
On or off. Default: false.
Stay at the end
On or off. Default: false.
Limits (1)
NPC moves at once
32 by default; hosts can raise it to 64. Above 48 the server may slow down.
Notes (1)

Needs Loner-Strike's components plugin, which comes with the app.

NPC Stop

actionnpc.stop

Stops an NPC's Move To or Follow Path where it is (neither Arrived nor Failed runs); it goes back to what it did, or stays.

Inputs (2)
Run Flow
Runs this node.
NPC Entity
NPC: an entity (a thing in the map). Needs a wire.
Outputs (1)
Then Flow
Goes on when it's done.
Settings (1)
Stay there
On or off. Default: true.
Notes (1)

Needs Loner-Strike's components plugin, which comes with the app.

Hostage Follow

actionhostage.follow

Makes a hostage follow a player (as if they pressed USE on it), any team.

Inputs (3)
Run Flow
Runs this node.
Hostage Entity
Hostage: an entity (a thing in the map). Needs a wire.
Leader Player
Leader: a player. Needs a wire.
Outputs (1)
Then Flow
Goes on when it's done.

Hostage Stop

actionhostage.stop

Makes a hostage stop following and wait where it is.

Inputs (2)
Run Flow
Runs this node.
Hostage Entity
Hostage: an entity (a thing in the map). Needs a wire.
Outputs (1)
Then Flow
Goes on when it's done.

Is Following

valuehostage.is_following

Is a hostage following someone, and whom.

Inputs (1)
Hostage Entity
Hostage: an entity (a thing in the map). Needs a wire.
Outputs (2)
Following Yes/No
Following: yes or no.
Leader Player
Leader: a player.

As NPC

actioncast.npc

Casting: is this entity an NPC (ls_npc, gm_components)? Success with it as that kind, else Failed. The one-click fix where an Entity wire goes into a pin of that kind.

Inputs (2)
Run Flow
Runs this node.
Entity Entity
The entity. Needs a wire.
Outputs (3)
Success Flow
Runs on Success.
Failed Flow
Runs on Failed.
NPCN NPC
NPC: an NPC entity (an NPC handle).
Notes (1)

Needs Loner-Strike's components plugin, which comes with the app.

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