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
A number, with or without a fraction. A pin marked # takes a whole number: a fraction is rounded (and Problems says so for one you typed in).
Given by Round Ended Player Killed Zone Stage Zone Hurt Player Wave Started Wave Spawned One Wave Cleared Checkpoint Reached and 126 moreTaken by Compare Math Random Number Add To Variable Delay Repeat Give Weapon Set Health and 130 more
Yes or no. Branch, the conditions and the gates use it.
Given by Player Killed Compare And / Or Not Is Alive Is Bot Create Component Roll Loot and 90 moreTaken by Branch And / Or Not Open Extraction Freeze Open or Close Shop Set Friendly Fire Set Team Balance and 10 more
Words: names, messages, map names. It doesn't last through a Delay unless it's kept in a variable.
Takes Weapon as they are.Cast to it As Creature takes an Entity and goes on by Success (it is one) or Failed.Given by Player Killed Creature Killed Name Of Roll Loot Player Hurt Chat Command Perk Bought Mystery Box Gave and 50 moreTaken by Give Weapon For Each Entity Pick Random Entity Text Is Say and Choose Say Match HUD Words Match Feed Line and 23 more
Three numbers, X, Y and Z: a place in the map, a direction or a speed. It doesn't last through a Delay unless it's kept in a variable.
Given by Player Hurt Creature Hurt Spawn Projectile Projectile Hit Projectile Velocity Get Transform Find Marker Make Vector and 29 moreTaken by Create Component Spawn Creature Spawn NPC Spawn Interactable Spawn Projectile Set Projectile Velocity Set Transform Set Rotation and 58 more
A team: Terrorists or Counter-Terrorists (no team for a draw).
Given by Round Ended Point Captured Point Lost Team Of Team Changed Taken by Is Team Count Alive Get Variable Set Variable Add To Variable Set Team End Round For Each Player and 6 more
A timer a Delay, Repeat or Countdown started, to stop or check later.
Given by Delay Repeat Countdown Retriggerable Delay Set Timer by Function Set Timer by Event Taken by Clear Timer Is Timer Active
A color, picked with the color picker (red, green and blue).
Given by Color Make Color Blend Colors Color From Hue Taken by Set Glow Screen Fade Beam Status Icon Objective Marker Trail Effect Burst Break Color and 1 more
A pin that takes a value of any type, like the value shown by Show HUD Text.
Given by Get Cell For Each Row Find Rows Row Keys Reroute Taken by Show HUD Text Chat Message Chat To Team Notify Admins Get Row Find Rows Print String Format Text and 4 more
Players and entities
A player in the game: a person or a bot.
Goes into Entity pins as it is.Cast to it As Player takes an Entity and goes on by Success (it is one) or Failed.Given by Player Killed Player Spawned Player Joined Player Left Bomb Planted Bomb Defused Player Used Player Touched and 56 moreTaken by Is Team Health Of Team Of Is Alive Is Bot Name Of Get Variable Set Variable and 179 more
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 moreTaken by Teleport Create Component Set Zone Shrink Zone Open Crate Open Extraction Door Set Barricade Health and 134 more
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
A creature from Spawn Creature: it moves, attacks and can be hurt.
Goes into Entity pins as it is.Cast to it As Creature takes an Entity and goes on by Success (it is one) or Failed.Given by Spawn Creature As Creature
A projectile from Spawn Projectile, flying until it hits or expires.
Goes into Entity pins as it is.Cast to it As Projectile takes an Entity and goes on by Success (it is one) or Failed.Given by Spawn Projectile Projectile Hit As Projectile
A trigger volume from Spawn Trigger Volume: an invisible box that notices who goes in and out.
Goes into Entity pins as it is.Cast to it As Trigger Volume takes an Entity and goes on by Success (it is one) or Failed.Given by Spawn Trigger Volume As Trigger Volume
An objective marker: a sprite floating over an entity or a spot, until Remove Marker.
Goes into Entity pins as it is.Cast to it As Objective Marker takes an Entity and goes on by Success (it is one) or Failed.Given by Objective Marker As Objective Marker
A component the mode made or the map placed: a capture point, a shop, a barricade, a door…
Goes into Entity pins as it is.Cast to it As Component takes an Entity and goes on by Success (it is one) or Failed.Given by Create Component Spawn Interactable As Component
A sound that keeps playing (Loop Sound) until Stop Sound gets it.
Goes into Entity pins as it is.Given by Loop Sound
Files
A model file (.mdl) the mode loads: props, creatures, attachments. Your own go with the mode.
Goes into Model or Sprite pins as it is.Given by Model Taken by Spawn NPC Spawn Interactable Spawn Prop Break Into Gibs
A sprite file (.spr): effects, glows, markers. Your own go with the mode.
Goes into Model or Sprite pins as it is.Given by Sprite Taken by Objective Marker
A sound file (.wav) the mode plays. Your own go with the mode.
Given by Sound Taken by Play Sound 2D Play Sound at Location Play Sound on Entity Loop Sound
A kind of decal from the game's decals.wad (a bullet hole, a scorch, blood).
Given by Decal Taken by Decal
A pin that takes a Model or a Sprite.
Takes Model , Sprite as they are.Taken by Spawn Projectile
Lists and enums
A value from a fixed list of named choices: the app's own lists below, or your mode's own enums.
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.
A list of values of one type, in order. An array doesn't go into an array of a wider type (an Array of Creatures isn't an Array of Entities): a value written through the wider type could be the wrong kind.
Given by Find Entities Creatures of Type Make Array Players Array Map Keys Map Values Players In Radius Entities In Radius and 2 moreTaken by For Each Player For Each Entity Pick Random Player Pick Random Entity For Each Add Insert Remove Item and 19 more
Values looked up by a key: text, a number or a player.
Taken by Map Add Map Remove Map Clear Map Find Map Contains Map Length Map Keys Map Values
What an entity is.
Values Player, Bot, Creature, NPC, Interactable, Component, Prop, Map entity, None Given by Kind Of
enum:ls_comp_kind Copy link 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
enum:ls_spawn_fail Copy link Why a spawn failed: a spawn node's Failure reason.
Values None, Blocked, Out of entity slots, Limit reached, Missing file, Retries used up, Bad input Given by Create Component Spawn Creature Spawn NPC Spawn Interactable Spawn Projectile Spawn Prop Spawn Trigger Volume Spawn Entity and 1 more
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
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
Where a hit landed on the body.
Values generic, head, chest, stomach, left arm, right arm, left leg, right leg Given by Player Hurt Projectile Hit Player About To Be Hurt
What kind of damage it was.
Values other, shot, slash, blast, burn, fall, shock, drown, poison Given by Player About To Be Hurt
struct:ls_transform Copy link Where something is and how it moves, in one value.
Fields Position (Vector ), Rotation (Vector ), Scale (Number ), Velocity (Vector ) Given by Get Transform Get Entity Transform Taken by Set Transform Set Entity Transform
Wiring
The white arrows: the order things run in. It carries no value.
Cast to it As Player As Creature As NPC As Projectile As Trigger Volume As Objective Marker As Component takes an Entity and goes on by Success (it is one) or Failed.Casts As Player As Creature As NPC As Projectile As Trigger Volume As Objective Marker As Component
A variable node's pin: it takes the type of the variable picked.
Given by Get Variable Taken by Set Variable
A pin whose type the node takes from a setting or from the first wire: an array node set to Players has Player pins.
Given by For Each Select Make Struct Enum Value Get Random Item Map Find Weighted Random Pick Taken by Switch on Enum Equal Select To Text Break Struct Set Field Enum To Number Make Array and 10 more
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.