hostage_entity
Hostage. A hostage NPC will spawn at this point.\n\nThere are usually four hostages placed in each hostage rescue map. The model for each Hostage is randomly chosen.
- FGD
@PointClassingame/csgo/csgo.fgd, basesTargetname, Angles. - cs_script type:
CSHostage, whatFindEntitiesByClass("hostage_entity")returns. - Native class:
CHostage(curated pairing).
CS2 build 27045800 · Steam date 2026-11-30 · platform windows-x86_64 · schema format 2.2
Inputs (15)
| Name | Parameter | From | Description |
|---|---|---|---|
RunScriptFile | string | VScript | Load and execute a script file |
RunScriptCode | string | VScript | Execute a fragment of script code |
CallScriptFunction | string | VScript | Call a script function |
CallPrivateScriptFunction | string | VScript | Calls a script function from this entity's private script scope. |
CallGlobalScriptFunction | string | VScript | Calls a script function in the global script scope. |
Kill | GameEntity | Removes this entity from the world. | |
KillHierarchy | GameEntity | Removes this entity and all its children from the world. | |
KillConstrained | GameEntity | Removes this entity, all its children, and anything constrained to it, from the world. | |
AddOutput | string | GameEntity | Adds an entity I/O connection to this entity. Parameter format: outputname>targetname>inputname>parameter>delay>max times to fire (-1 == infinite). Very dangerous, use with care. |
FireUser1 | GameEntity | Causes this entity's OnUser1 output to be fired. | |
FireUser2 | GameEntity | Causes this entity's OnUser2 output to be fired. | |
FireUser3 | GameEntity | Causes this entity's OnUser3 output to be fired. | |
FireUser4 | GameEntity | Causes this entity's OnUser4 output to be fired. | |
EnableAutoSleeping | GameEntity | Enable automatic sleeping on this entity's physics bodies. When enabled, physics bodies go to sleep when at rest. | |
DisableAutoSleeping | GameEntity | Disable automatic sleeping on this entity's physics bodies. Bodies remain awake until explicitly put to sleep. |
Outputs (9)
| Name | Parameter | From | Description |
|---|---|---|---|
OnUser1 | GameEntity | Fired in response to FireUser1 input. | |
OnUser2 | GameEntity | Fired in response to FireUser2 input. | |
OnUser3 | GameEntity | Fired in response to FireUser3 input. | |
OnUser4 | GameEntity | Fired in response to FireUser4 input. | |
OnKilled | GameEntity | Fired when the entity is killed and removed from the game. Parameter is the inflictor. | |
OnHostageBeginGrab | Fires when a player starts to use a hostage | ||
OnFirstPickedUp | Fires when the hostage is first picked up | ||
OnDroppedNotRescued | Fires when the hostage is dropped, but not rescued | ||
OnRescued | Fires when the hostage is rescued |
Keyvalues (35)
The names Hammer saves and the KeyValue input and AddOutput take at run time. An entity reads some keys only when it spawns, so changing one later may do nothing. Integer keys such as movetype take engine numbers, not the renumbered cs_script enum values.
| Key | Type | Default | From | Description |
|---|---|---|---|---|
vscriptsEntity Scripts | scriptlist | VScript | Name(s) of script files that are executed after all entities have spawned. | |
targetnameName | target_source | Targetname | The name that other entities refer to this entity by. | |
anglesPitch Yaw Roll (Y Z X) | angle | 0 0 0 | Angles | This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis. |
HostageTypeHostage Model (int) | choices | 0 | Not used. Hostage models are chosen randomly by the game.
| |
HostageSpawnRandomFactorHostage Spawn Random Factor (int) | integer | 1 | Allows to increase probability of this hostage being picked during random spawn selection process, essentially considering this spawn point specified number of times. | |
HostageSpawnExclusionGroup1Hostage Spawn Exclusion Group 1 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup2Hostage Spawn Exclusion Group 2 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup3Hostage Spawn Exclusion Group 3 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup4Hostage Spawn Exclusion Group 4 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup5Hostage Spawn Exclusion Group 5 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup6Hostage Spawn Exclusion Group 6 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup7Hostage Spawn Exclusion Group 7 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup8Hostage Spawn Exclusion Group 8 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup9Hostage Spawn Exclusion Group 9 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup10Hostage Spawn Exclusion Group 10 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup11Hostage Spawn Exclusion Group 11 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup12Hostage Spawn Exclusion Group 12 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup13Hostage Spawn Exclusion Group 13 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup14Hostage Spawn Exclusion Group 14 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup15Hostage Spawn Exclusion Group 15 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup16Hostage Spawn Exclusion Group 16 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup17Hostage Spawn Exclusion Group 17 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup18Hostage Spawn Exclusion Group 18 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup19Hostage Spawn Exclusion Group 19 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup20Hostage Spawn Exclusion Group 20 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup21Hostage Spawn Exclusion Group 21 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup22Hostage Spawn Exclusion Group 22 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup23Hostage Spawn Exclusion Group 23 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup24Hostage Spawn Exclusion Group 24 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup25Hostage Spawn Exclusion Group 25 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup26Hostage Spawn Exclusion Group 26 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup27Hostage Spawn Exclusion Group 27 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup28Hostage Spawn Exclusion Group 28 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup29Hostage Spawn Exclusion Group 29 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
| |
HostageSpawnExclusionGroup30Hostage Spawn Exclusion Group 30 | choices | 0 | Hostages sharing same spawn exclusion group will never spawn together.
|