scripted_sequence (Half-Life)
Last edited 6 years ago2018-06-09 06:57:07 UTC
- Wiki
- View Page
-
You are viewing an older revision of this wiki page. The current revision may be more detailed and up-to-date.
Click here to see the current revision of this page.
scripted_sequence - Point Entity
The scripted_sequence entity allows you to make a monster entity move to a specific location and/or perform a given animation.
Attributes
- Target (target) - When this entity is triggered, it will trigger the entity specified in Target.
- Delay before trigger (delay) - Target and KillTarget will be triggered this many seconds after the animation is performed.
- KillTarget (killtarget) - When the sequence is completed, the entity that is specified in KillTarget will be removed from the game.
- Name (targetname) - Name is a general attribute used to identify entities.
- Pitch Yaw Roll (Y Z X) (angles) - The monster will turn to face the given yaw angle before performing the animation. Pitch and roll are not used.
- Target Monster (m_iszEntity) - The name of the monster entity that this sequence affects. You can also input a monster type (monster_scientist, for example). (Only one monster will be chosen to follow the sequence.)
- Action Animation (m_iszPlay) - The name of the animation that will be performed by Target Monster.
- Idle Animation (m_iszIdle) - The name of an animation you want Target Monster to perform on a loop until the scripted_sequence is triggered. See notes below for how this changes the usage of the entity.
- Search Radius (m_flRadius) - If you input a monster type 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) - Seemingly unused.
- Move to Position (m_flMoveTo) - Sets how (or if) the monster moves before performing the animation:
- 0 = No - The monster will not move or turn. It will perform the animation wherever it is.
- 1 = Walk - The monster will walk to the scripted_sequence, then perform the animation.
- 2 = Run - The monster will run to the scripted_sequence, then perform the animation.
- 4 = Instantaneous - The monster will instantly warp to the location of the scripted_sequence and perform the animation.
- 5 = No - Turn to Face - The monster will not move, but will turn to the scripted_sequence's angle before performing the animation.
Flags
- Repeatable (4) - If enabled, the sequence can be repeated more than once. Otherwise the entity will be removed once the sequence is complete.
- Leave Corpse (8) - Seemingly unused.
- No Interruptions (32) - If enabled, the sequence cannot be interrupted. The monster will ignore damage until the sequence is complete, as with the aiscripted_sequence entity.
- Override AI (64) - Seemingly unused.
- No Script Movement (128) - If enabled, when the sequence is completed, the monster will be placed back where the Action Animation started (if the animation would cause the monster to move).
Notes
- Making use of the Idle Animation field will change how the entity is used. The monster will move at the start of the level ("Walk" and "Run" movement types will not function as intended) and then perform their idle animation on a loop. When the scripted_sequence is triggered, the monster will perform their action animation.
- You can use a model viewer to see the animations available to each monster.
- If using the "Instantaneous" movement type with no Idle Animation, the script will freeze the monster after it is teleported. Trigger the script again to continue the script.
3 Comments
You must log in to post a comment.
You can login or register a new account.
the flowchart just demonstrates how confusing it really apparently is