tf_spawner

From Valve Developer Community
Revision as of 09:14, 7 January 2024 by WisdomBot (talk | contribs) (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
Jump to navigation Jump to search

tf_spawner is an e0 available in Team Fortress 2 Team Fortress 2.

Warning.pngWarning:
  • The {{{game}}} parameter is inconsistent with the name defined by the {{tf2}} template. This can most likely be fixed by setting the value of the {{{game}}} parameter to Team Fortress 2.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

Entity description

An entity that spawns templatized entities.

Keyvalues

Name (targetname) <string>[ Edit ]
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