Trigger finale

From Valve Developer Community
Revision as of 02:59, 20 January 2009 by VDCBot (talk | contribs) (Robot: fixing template case.)

Jump to: navigation, search
Note:The current description of this entity is based on unofficial data based on data mining. Anything that may be read here is largely incomplete or, in some cases, incorrect.

Entity Description

Triggers the end of the current campaign session.

Keyvalues

  • Targetname:

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:Try to avoid expensive operations in this function, as it may cause performance problems.

Angles:

Pitch Yaw Roll (Y Z X) (angles) <angle>
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.
  • Origin:

Origin (X Y Z) (origin) <origin>
The position of this entity's center in the world. Rotating entities typically rotate around their origin.
  • UseDelay
<int>
  • UseDuration
<int>

Inputs

  • FinaleEscapeForceSurvivorPositions

Outputs

  • FinalePause
Fired every time there is a pause in the Finale. Each pause lasts 5 seconds and happens before and after each tank spawn, and in the middle of a horde spawn. Therefore, there are 6 pauses during each finale.