Trigger finale

From Valve Developer Community
Revision as of 20:03, 6 July 2009 by Yar Kramer (talk | contribs) (Outputs)

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> (New with 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> (New with 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

  • Targetname:

OnUser1 to OnUser4
These Outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see User Inputs and Outputs.
OnKilled  (Only in the Left 4 Dead series)
This Output fires when the entity is killed and removed from the game.
  • EscapeVehicleLeaving
  • FinaleEscapeStarted
  • FinaleLost
  • 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.
  • FinaleStart
  • FinaleWon
  • FirstUseStart
  • UseStart