From Valve Developer Community
Jump to: navigation, search

<Team Fortress 2> tf_robot_destruction_spawn_group is a point entity available in Team Fortress 2.

Entity description

The control entity for each of the robot groups in the robot destruction game mode.



Name (targetname) <string>
The targetname that other entities refer to this entity by.
Entity Scripts (vscripts) <scriptlist> (in all games since <Left 4 Dead 2>)
Space delimited list of VScript files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.
Script think function (thinkfunction) <string> (in all games since <Left 4 Dead 2>)
Name of a function in this entity's script which will be called automatically every 100 milliseconds (ten times a second) for the duration of the script. It can be used to create timers or to simulate autonomous behavior. The return value (if present) will set the time until the next call.
Note.png Note: Try to avoid expensive operations in this function, as it may cause performance problems.
groupnumber <integer>
Which robot group it is (one indexed)
hud_icon <material>
The material for the HUD
respawn_time <integer>
How long it takes for the group to respawn


Team (TeamNum) <choices>
  • 0: Any
  • 2: Red
  • 3: Blue



Fires when all of the robots of the group are destroyed
Fires when all of the robots of the group respawn