aiscripted_sequence

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

aiscripted_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)

Using the scripted_sequence entity as base, the aiscripted_sequence entity inherits the same responsibility of making a monster entity move to a specific location and/or perform a given animation. The primary difference being that it completely overrides the targeted monster's AI. Regardless of what you do to the monster, it will follow this sequence.

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".
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
AI Schedule when done (m_iFinishSchedule) <choices>
Defines what happens to the monster's AI when the sequence is completed/canceled.
# Name Description
0 Default AI The AI will order the monster to clear it's schedule (kinda like a "reset"). It will resume normal behavior afterwards.
1 Ambush The AI will order the monster to go into an "ambush" schedule. That is to wait for an infinite period of time unless it see an enemy or take damage.

Flags

Repeatable : [4]
Leave Corpse : [8]