tf_spawner

From Valve Developer Community
Jump to: navigation, search

tf_spawner is a point entity available in Team Fortress 2 Team Fortress 2.

Entity description

An entity that spawns templatized entities.

Keyvalues

Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Count count ([todo internal name (i)]) <integer>
Total number of entities to spawn over the lifetime of this spawner.
Max Active ([todo internal name (i)]) <integer>
Maximum number of simultaneous active entities created by this spawner.
Interval ([todo internal name (i)]) <float>
Time (in seconds) between spawns
Template to spawn entities from ([todo internal name (i)]) <targetname>
Template to spawn entities from

Inputs

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.
Reset
Reset spawner to initial state

Outputs

OnSpawned
Sent when an entity has spawned into the environment
OnExpended
Sent when the spawner has reached its allowed total of entities spawned