Loner-StrikeReference

Reference

Pin types

The 37 types a Game Mode Studio pin can have: what each is, what it plugs into and how to cast to it.

Every pin has a type, shown by its color and shape: a square for a file, a grid for an array, a diamond for a map, a letter for an entity handle, # for a whole number. A wire joins pins of the same type, or a narrower type into a wider one (a Creature into an Entity pin); going the other way takes a cast (As Creature). The Types and casting guide walks through it.

Basics

Players and entities

Entity

entity

Anything in the world: a player, a prop, a creature, an NPC, a component, a map entity. The handles below are entities known to be one kind.

Takes
Player, NPC, Creature, Projectile, Trigger Volume, Objective Marker, Component, Sound Loop as they are.
Casts
As Player As Creature As NPC As Projectile As Trigger Volume As Objective Marker As Component
Given by
Player Used Player Touched Point Captured Point Lost Zone Stage Zone Hurt Player Player Extracted Wave Spawned One and 42 more
Taken by
Teleport Create Component Set Zone Shrink Zone Open Crate Open Extraction Door Set Barricade Health and 134 more

NPCN

npc

An NPC from Spawn NPC: a person who talks, walks paths and follows.

Goes into
Entity pins as it is.
Cast to it
As NPC takes an Entity and goes on by Success (it is one) or Failed.
Given by
Spawn NPC As NPC

Sound Loop

soundloop

A sound that keeps playing (Loop Sound) until Stop Sound gets it.

Goes into
Entity pins as it is.
Given by
Loop Sound

Files

Decal

decal

A kind of decal from the game's decals.wad (a bullet hole, a scorch, blood).

Given by
Decal
Taken by
Decal

Lists and enums

Enum

enum

A value from a fixed list of named choices: the app's own lists below, or your mode's own enums.

Struct

struct

A bundle of named values kept together: Transform, or your mode's own structs. It doesn't last through a Delay unless it's kept in a variable.

Entity Kind

enum:ls_kind

What an entity is.

Values
Player, Bot, Creature, NPC, Interactable, Component, Prop, Map entity, None
Given by
Kind Of

Component Kind

enum:ls_comp_kind

Which kind of component it is.

Values
Capture point, Extraction zone, Checkpoint, Shop, Barricade, Trap, Loot container, Supply drop, Supply crate, Perk machine, Upgrade bench, Mystery box, Meeting point, Moving platform, Timed door, Wave spawner, Safe zone, Shrinking zone, Damage zone, Weapon spawner, Respawn point, Player class, Pickup, NPC, Interactable, None
Given by
Component Kind Of

Who

enum:ls_who

Which players a For Each Player or Pick Random Player goes through.

Values
Everyone in the game, Everyone alive, Everyone dead, Terrorists, Counter-Terrorists, Living Terrorists, Living Counter-Terrorists, Bots, People (not bots)
Taken by
For Each Player Pick Random Player

Weapon

enum:ls_weapon

A weapon, by its game name.

Goes into
Text pins as it is (its name).
Values
none, ak47, m4a1, awp, scout, famas, galil, aug, sg552, mp5navy, p90, ump45, mac10, tmp, m3, xm1014, m249, deagle, usp, glock18, p228, fiveseven, elite, hegrenade, flashbang, smokegrenade, knife, c4, g3sg1, sg550
Given by
Player Killed Weapon Held

Wiring

Made from the app's own catalog (nodes.json, nodehelp.json, schema.ts's built-in enums, graph.rs's upcasts), so it matches the app.