Env entity maker

From Valve Developer Community
Revision as of 23:27, 10 November 2007 by Remmiz (talk | contribs) (spam)
Jump to navigation Jump to search

Template:Wrongtitle

Entity Description

Spawns the specified entity template at its origin. If set to auto-spawn, it will spawn the template whenever there's room and the player is looking elsewhere.

Keyvalues

Name of the point_template to spawn here.
<float> If specified, all the entities created in the template will move this fast in the specified PostSpawn Movement Direction.
<angle> If a PostSpawn Movement Speed is specified, all the entities created in the template will move in this direction.
<float> This variance is applied to the PostSpawn Movement Direction for each spawned entity in the template. Use it to apply some randomness to the directions.

Flags

  • 1 : Enable AutoSpawn (will spawn whenever there's room)
  • 2 : AutoSpawn: Wait for entity destruction
  • 4 : AutoSpawn: Even if the player is looking
  • 8 : ForceSpawn: Only if there's room
  • 16 : ForceSpawn: Only if the player isn't looking

Inputs

Spawn an instance of the template at this origin and angle.

Outputs

Fired when an instance of the entity template has been spawned.
  • OnEntityFailedSpawn
Fired when a ForceSpawn input failed to spawn the template, either due to lack of space or being in player's view, depending on the spawnflags.