logic_choreographed_scene
From Valve Developer Community
(Redirected from Scripted scene)
Contents |
Entity Description
Manages a choreographed scene of one or more actors.For an example on how this entity can be used, see the npc_gman_overwatch prefab.
Keyvalues
-
Targetname:
- Name <string>
- The targetname other entities refer to this entity by.
- SceneFile
- <scene> The VCD scene file to use.
- target(1-8)
- <target_destination> Use these keyvalues to specify the resolution of Actor or Event Target names that are using a !Target# name in the VCD.
- busyactor
- <choices> If an Actor is already talking...
Literal Value Description 0 Start immediately 1 Wait for actor to finish 2 Interrupt at next interrupt event 3 Cancel at next interrupt event
- onplayerdeath
- If set, NPC will cancel script and return to AI.
Inputs
-
Targetname:
-
Kill - Removes this entity from the world.
-
KillHierarchy - Removes this entity and all its children from the world.
-
AddOutput <string> - Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
- Format:
<key> <value> - Format:
<output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite> -
FireUser1toFireUser4 - Fire the
OnUseroutputs; see User Inputs and Outputs.
- Start
- Starts playback of the scene file
- Pause
- Pauses playback of the scene file
- Resume
- Resumes playback of the scene if it has been paused
- Cancel
- Cancels playback of the scene
- InterjectResponse <string>
- Finds an actor who can respond to the specified concept string while the scene continues playing
- StopWaitingForActor
- Stop waiting on an actor to stop talking.
- CancelAtNextInterrupt
- Cancels playback of the scene at the next interrupt event in the scene.
Outputs
-
Targetname:
-
OnUser1toOnUser4 - Fired in response to the
FireUserinputs; see User Inputs and Outputs. -
OnKilled(New with Left 4 Dead) - Fired when the entity is killed and removed from the game.
- OnStart
- The scene has started
- OnCompletion
- The scene has completed
- OnCanceled
- The scene has been cancelled
- OnTrigger(1-8)
- Scene trigger (1-8). (activator is the activator)

