scripted_sequence

From Valve Developer Community
Revision as of 14:31, 29 February 2024 by N0one (talk | contribs) (Created page with "{{tabs|scripted_sequence|goldsrc = 1|source = 1|main = source}} {{This is a|name=scripted_sequence|e0|engine=1|game=Half-Life}} (also in {{ricochet|4}}) A '''scripted_sequen...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

scripted_sequence is an e0 available in Half-Life Half-Life.Template:1 topicon

Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{1}} template.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

(also in Ricochet Ricochet)

A scripted_sequence typically takes a Target NPC which can be set to either move to the sequence's position or play the sequence's animation at the NPC's current position. When the NPC is ready to begin the sequence, it will play the specified animation(s) in a special scripted state which may or may not be interrupted depending on the scripted_sequence's settings.

Key Values

Name (targetname) <string>
The targetname that other entities refer to this entity by.
Target (target) <targetname>
The targetname of an entity this entity will trigger when activated.
Delay before trigger (delay) <integer>
Delay in seconds before firing the targeted entity.
Killtarget (killtarget) <targetname>
Entity to remove when activated.
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.
Target Monster (m_iszEntity) <string>
The name of the monster entity that this sequence affects. You can also input a monster classname
Action Animation (m_iszPlay) <string>
The name of the animation that will be performed by "Target Monster".
Idle Animation (m_iszIdle) <string>
The name of an animation you want "Target Monster" to perform on a loop until the scripted_sequence is triggered.
Search Radius (m_flRadius) <integer>
If you input a monster classname into "Target Monster", the entity will pick a monster within this radius of the entity to follow the sequence. If none are within the radius, the first monster to enter the radius will follow the sequence.
Repeat Rate ms (m_flRepeat) <integer>
How often to check if a monster is within the search radius. A check will be made even if search radius is zero, so set this to a large value if it's not used.
Move to Position (m_fMoveTo) <choices>
Sets how (or if) the monster moves before performing the animation:
# Description
0 No
1 Walk
2 Run
4 Instantaneous
5 No - Turn to Face

Flags

Repeatable : [4]
Leave Corpse : [8]
No Interruptions : [32]
Override AI : [64]
No Script Movement : [128]