Info zombie spawn
Jump to navigation
Jump to search
Template:L4d series point It is used to spawn a zombie manually.
Generally, it is recommended to leave zombie spawning to the AI Director, however there may be uses for it, such as spawning a Tank in a train car like in The Sacrifice.
Keyvalues
- Attack On Spawn ([todo internal name (i)]) <boolean>
- Whether this zombie should always attack on spawn. Note that this only affects Tanks and Witches at this time, all others always attack on spawn.
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Pitch Yaw Roll (Y Z X) (angles) <QAngle>
- 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.
Parentname:
- Parent (parentname) <targetname>
- Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
Inputs
- SpawnZombie
- Spawn a zombie now.
- StartleZombie (in all games since
)
- Startle the zombie (witches only).
Parentname:
- SetParent <string >
- Move with this entity. See Entity Hierarchy (parenting).
- SetParentAttachment <string >
- Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
- SetParentAttachmentMaintainOffset <string >
- As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
- ClearParent
- Removes this entity from the the movement hierarchy, leaving it free to move independently.
Outputs
- OnSpawnNormal
- Fired when the spawner creates a Common Infected.
- OnSpawnSmoker
- Fired when the spawner creates a Smoker.
- OnSpawnBoomer
- Fired when the spawner creates a Boomer.
- OnSpawnHunter
- Fired when the spawner creates a Hunter.
- OnSpawnSpitter
- Fired when the spawner creates a Spitter.
- OnSpawnJockey
- Fired when the spawner creates a Jockey.
- OnSpawnCharger
- Fired when the spawner creates a Charger.
- OnSpawnWitch
- Fired when the spawner creates a Witch.
- OnSpawnTank
- Fired when the spawner creates a Tank.
See also
- commentary_zombie_spawner - An alternative entity for spawning common, special, and boss infected
- Left 4 Dead Infected Populations