Loner-StrikeReference

Reference

Creatures

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

eventCreature KilledA creature died.valueCreature HealthA creature's health now (0 when it's gone).actionSpawn CreatureMakes a creature of this type at an entity (wired into At, or the one with this name).eventCreature HurtA creature took damage (Headshot when the hit was a head).actionAs CreatureCasting: is this entity one of the bot brain's creatures?valueCreatures AliveHow many creatures are alive.flowFor Each CreatureRuns Each once for every creature alive (of a type, or any), then Then.valueCreatures of TypeEvery creature alive of a type (empty: any), as an array.valueNearest CreatureThe creature alive nearest to a point or an entity (a player, a gate), of a type or any; nobody if there are none.valueCreature TypeA creature's type (zombie, runner...); empty for anything else.valueIdle ForSeconds a creature has stood still (moved less than 32 units).valueCan SeeIs there a clear line from the creature's eyes to a player or entity?actionCreature Go ToSends a creature to a place: an entity wired in (a player, a marker's entity), a point, or the entity with this name.actionCreature AttackMakes a creature go after a player or an entity (a gate, a turret) until it's gone.actionCreature HoldMakes a creature stay where it is (it guards the spot: it still fights what comes close, then comes back) until Resume AI or Go To.actionCreature Resume AIGives a creature back to its own AI: what its type does by itself (wander, patrol, guard or hunt), its spawn spot as home, no target forced.valueCreature StateWhat a creature is doing now: 1 idle, 2 wander, 3 patrol, 4 guard, 5 chase, 6 flee, 7 attack, 8 search, 9 dead (0: not a creature).valueCreature TargetWho a creature is after now: a player or another creature; nobody when none.actionSet Creature SpeedTimes a creature's normal walk and run speed (0.2 to 3; 1 is its own) until it dies.actionSet Creature TierMakes a creature tier 0 to 3 (2: a yellow shell, 3: red-orange and a bit bigger), as the spawn key tier does; its health keeps its share.actionCreature Flee ToMakes a creature run away to a place (an entity wired in, a point, or the entity with this name).actionSet Creature HealthSets a creature's health (and its full health, so it isn't over).actionRemove CreatureTakes a creature away.eventCreature IdleRuns when a creature has stood still this many seconds (and, if asked, can't see any player): send it somewhere with Creature Go To.valueIs CreatureIs the entity one of the bot brain's creatures?

Creature Killed

eventcreature.on_killed

A creature died. Needs the Loner-Strike bot brain with creatures.

Outputs (4)
Then Flow
Goes on when it's done.
Creature Entity
Creature: an entity (a thing in the map).
Killer Player
Killer: a player.
Type Text
Type: text.
Notes (1)

Needs the Loner-Strike bot brain with creatures.

Spawn Creature

actioncreature.spawn

Makes a creature of this type at an entity (wired into At, or the one with this name). Needs the Loner-Strike bot brain with creatures (the debugger says so if not). 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 (10)
Run Flow
Runs this node.
At entity Entity
At entity: an entity (a thing in the map). Optional.
Health Number
Health: a number. Leave it empty to use the setting.
Pay Number
Pay: a number. Leave it empty to use the setting.
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.
Outputs (7)
Then Flow
Goes on when it's done.
EntityC Creature
Entity: a creature entity (a Creature 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 (11)
Type
A name, as the map or the game knows it (letters, digits, _ . -). Default: zombie.
At the entity named
A name, as the map or the game knows it (letters, digits, _ . -). Default: spot1.
Health (0: the type's own)
A number from 0 to 100000. A wire into the pin of the same name is used instead. Default: 0.
Tier (looks and enrage; 0 none)
Pick one: None, 1, 2, 3. Default: 0.
Pay its killer ($)
A number from 0 to 16000. A wire into the pin of the same name is used instead. Default: 0.
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 the Loner-Strike bot brain with creatures.

Creature Hurt

eventup.on_creature_hurt

A creature took damage (Headshot when the hit was a head). Hit Position: where a bullet or the knife struck (else its middle); Direction: which way the hit was going. Use Get Entity Transform on Creature, or Get Transform on Attacker, for where they were.

Outputs (7)
Then Flow
Goes on when it's done.
Creature Entity
Creature: an entity (a thing in the map).
Attacker Player
Attacker: a player.
Damage Number
Damage: a number.
Headshot Yes/No
Headshot: yes or no.
Hit Position Vector
Hit Position: a position or direction (X, Y, Z).
Direction Vector
Direction: a position or direction (X, Y, Z).
Notes (1)

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

For Each Creature

flowcreature.for_each

Runs Each once for every creature alive (of a type, or any), then Then. Friendly ones (turrets) are left out. Every creature each time it runs: keep it out of per-frame flows.

Inputs (1)
Run Flow
Runs this node.
Outputs (3)
Each Flow
Runs once for every item.
Creature Entity
Creature: an entity (a thing in the map).
Then Flow
Goes on when it's done.
Settings (1)
Type (empty: any)
A name, as the map or the game knows it (letters, digits, _ . -).
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.
Bots (1)

Needs the Loner-Strike bot brain with creatures.

Notes (1)

Needs the Loner-Strike bot brain with creatures.

Creatures of Type

valuecreature.of_type

Every creature alive of a type (empty: any), as an array. Looks through them all each time: keep it in a variable instead of in a loop.

Outputs (1)
Creatures Array of Entity
Creatures: a list of entities (a thing in the map).
Settings (1)
Type (empty: any)
A name, as the map or the game knows it (letters, digits, _ . -).
Bots (1)

Needs the Loner-Strike bot brain with creatures.

Notes (1)

Needs the Loner-Strike bot brain with creatures.

Nearest Creature

valuecreature.nearest

The creature alive nearest to a point or an entity (a player, a gate), of a type or any; nobody if there are none.

Inputs (2)
To point Vector
To point: a position or direction (X, Y, Z). Optional.
To entity Entity
To entity: an entity (a thing in the map). Optional.
Outputs (1)
Creature Entity
Creature: an entity (a thing in the map).
Settings (1)
Type (empty: any)
A name, as the map or the game knows it (letters, digits, _ . -).
Bots (1)

Needs the Loner-Strike bot brain with creatures.

Notes (1)

Needs the Loner-Strike bot brain with creatures.

Creature Type

valuecreature.type

A creature's type (zombie, runner...); empty for anything else.

Inputs (1)
Creature Entity
Creature: an entity (a thing in the map). Needs a wire.
Outputs (1)
Type Text
Type: text.
Bots (1)

Needs the Loner-Strike bot brain with creatures.

Notes (1)

Needs the Loner-Strike bot brain with creatures.

Idle For

valuecreature.idle_for

Seconds a creature has stood still (moved less than 32 units). Counted once a second.

Inputs (1)
Creature Entity
Creature: an entity (a thing in the map). Needs a wire.
Outputs (1)
Seconds Number
Seconds: a number.
Bots (1)

Needs the Loner-Strike bot brain with creatures.

Notes (1)

Needs the Loner-Strike bot brain with creatures.

Can See

valuecreature.can_see

Is there a clear line from the creature's eyes to a player or entity?

Inputs (2)
Creature Entity
Creature: an entity (a thing in the map). Needs a wire.
Player or entity Entity
Player or entity: an entity (a thing in the map). Needs a wire.
Outputs (1)
Sees Yes/No
Sees: yes or no.
Bots (1)

Needs the Loner-Strike bot brain with creatures.

Notes (1)

Needs the Loner-Strike bot brain with creatures.

Creature Go To

actioncreature.go_to

Sends a creature to a place: an entity wired in (a player, a marker's entity), a point, or the entity with this name. Guard there: it stays and fights there. Then resume: it goes back to hunting once there.

Inputs (4)
Run Flow
Runs this node.
Creature Entity
Creature: an entity (a thing in the map). Needs a wire.
To entity Entity
To entity: an entity (a thing in the map). Optional.
To point Vector
To point: a position or direction (X, Y, Z). Optional.
Outputs (1)
Then Flow
Goes on when it's done.
Settings (2)
Or the entity named
A name, as the map or the game knows it (letters, digits, _ . -). Default: gate1.
Then
Pick one: Guard there, Resume hunting. Default: guard.
Bots (1)

Needs the Loner-Strike bot brain with creatures.

Notes (1)

Needs the Loner-Strike bot brain with creatures.

Creature Attack

actioncreature.attack

Makes a creature go after a player or an entity (a gate, a turret) until it's gone.

Inputs (3)
Run Flow
Runs this node.
Creature Entity
Creature: 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.
Bots (1)

Needs the Loner-Strike bot brain with creatures.

Notes (1)

Needs the Loner-Strike bot brain with creatures.

Creature Hold

actioncreature.hold

Makes a creature stay where it is (it guards the spot: it still fights what comes close, then comes back) until Resume AI or Go To.

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

Needs the Loner-Strike bot brain with creatures.

Notes (1)

Needs the Loner-Strike bot brain with creatures.

Creature Resume AI

actioncreature.resume

Gives a creature back to its own AI: what its type does by itself (wander, patrol, guard or hunt), its spawn spot as home, no target forced. With an older bot brain it hunts instead.

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

Needs the Loner-Strike bot brain with creatures.

Notes (1)

Needs the Loner-Strike bot brain with creatures.

Creature State

valuecreature.state

What a creature is doing now: 1 idle, 2 wander, 3 patrol, 4 guard, 5 chase, 6 flee, 7 attack, 8 search, 9 dead (0: not a creature). Name gives the word (idle ... dead). Needs a bot brain with creature control 2 (ls_creature_ver 2); the mode says so in the server log when it's older.

Inputs (1)
Creature Entity
Creature: an entity (a thing in the map). Needs a wire.
Outputs (2)
State Number
State: a number.
Name Text
Name: text.
Bots (1)

Needs the Loner-Strike bot brain with creatures.

Notes (1)

Needs the Loner-Strike bot brain with creatures.

Creature Target

valuecreature.target

Who a creature is after now: a player or another creature; nobody when none. Needs a bot brain with creature control 2 (ls_creature_ver 2); the mode says so in the server log when it's older.

Inputs (1)
Creature Entity
Creature: an entity (a thing in the map). Needs a wire.
Outputs (1)
Target Entity
Target: an entity (a thing in the map).
Bots (1)

Needs the Loner-Strike bot brain with creatures.

Notes (1)

Needs the Loner-Strike bot brain with creatures.

Set Creature Speed

actioncreature.set_speed

Times a creature's normal walk and run speed (0.2 to 3; 1 is its own) until it dies. Enraged comes on top. Needs a bot brain with creature control 2 (ls_creature_ver 2); the mode says so in the server log when it's older.

Inputs (3)
Run Flow
Runs this node.
Creature Entity
Creature: an entity (a thing in the map). Needs a wire.
Times Number
Times: a number. Leave it empty to use the setting.
Outputs (1)
Then Flow
Goes on when it's done.
Settings (1)
Times its speed
A number from 0.2 to 3. A wire into the pin of the same name is used instead. Default: 1.5.
Bots (1)

Needs the Loner-Strike bot brain with creatures.

Notes (1)

Needs the Loner-Strike bot brain with creatures.

Set Creature Tier

actioncreature.set_tier

Makes a creature tier 0 to 3 (2: a yellow shell, 3: red-orange and a bit bigger), as the spawn key tier does; its health keeps its share. Needs a bot brain with creature control 2 (ls_creature_ver 2); the mode says so in the server log when it's older.

Inputs (3)
Run Flow
Runs this node.
Creature Entity
Creature: an entity (a thing in the map). Needs a wire.
Tier# Number
Tier: a number. Leave it empty to use the setting.
Outputs (1)
Then Flow
Goes on when it's done.
Settings (1)
Tier#
A number from 0 to 3. A wire into the pin of the same name is used instead. Default: 2.
Bots (1)

Needs the Loner-Strike bot brain with creatures.

Notes (1)

Needs the Loner-Strike bot brain with creatures.

Creature Flee To

actioncreature.flee_to

Makes a creature run away to a place (an entity wired in, a point, or the entity with this name).

Inputs (4)
Run Flow
Runs this node.
Creature Entity
Creature: an entity (a thing in the map). Needs a wire.
To entity Entity
To entity: an entity (a thing in the map). Optional.
To point Vector
To point: a position or direction (X, Y, Z). Optional.
Outputs (1)
Then Flow
Goes on when it's done.
Settings (1)
Or the entity named
A name, as the map or the game knows it (letters, digits, _ . -).
Bots (1)

Needs the Loner-Strike bot brain with creatures.

Notes (1)

Needs the Loner-Strike bot brain with creatures.

Set Creature Health

actioncreature.set_health

Sets a creature's health (and its full health, so it isn't over).

Inputs (3)
Run Flow
Runs this node.
Creature Entity
Creature: an entity (a thing in the map). Needs a wire.
Health Number
Health: a number. Leave it empty to use the setting.
Outputs (1)
Then Flow
Goes on when it's done.
Settings (1)
Health
A number from 1 to 100000. A wire into the pin of the same name is used instead. Default: 100.
Bots (1)

Needs the Loner-Strike bot brain with creatures.

Notes (1)

Needs the Loner-Strike bot brain with creatures.

Remove Creature

actioncreature.remove

Takes a creature away. Kill: it dies (Creature Killed runs, waves count it; nobody is paid). Remove quietly: it's gone, nothing runs.

Inputs (2)
Run Flow
Runs this node.
Creature Entity
Creature: an entity (a thing in the map). Needs a wire.
Outputs (1)
Then Flow
Goes on when it's done.
Settings (1)
How
Pick one: Kill (counts as a death), Remove quietly. Default: kill.
Bots (1)

Needs the Loner-Strike bot brain with creatures.

Notes (1)

Needs the Loner-Strike bot brain with creatures.

Creature Idle

eventcreature.on_idle

Runs when a creature has stood still this many seconds (and, if asked, can't see any player): send it somewhere with Creature Go To. Runs again after as many seconds if it's still stuck.

Outputs (3)
Then Flow
Goes on when it's done.
Creature Entity
Creature: an entity (a thing in the map).
Idle for Number
Idle for: a number.
Settings (2)
Seconds
A number from 2 to 600. Default: 12.
Only when no player is in sight
On or off. Default: true.
Bots (1)

Needs the Loner-Strike bot brain with creatures.

Notes (1)

Needs the Loner-Strike bot brain with creatures.

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