ai_battle_line

From Source Entities
Jump to navigation Jump to search

Code classes:

ai_battle_line is a point entity present in all games except the L4d.pngL4d2-small.pngLeft 4 Dead games. Battle lines are part of the standoff AI behavior. They instruct NPCs to try and stay behind it, though they'll may disobey it. Hint groups are also very helpful.

Note: In Asw.pngP2.png, an ERROR model is shown in place of a missing Half-Life 2 model. The entity should still work as normal.

Standoff diagram.png

Flags[edit | edit source]

Keyvalues[edit | edit source]

Actor (actor) <target_name_or_class>
Actor(s) or squad to affect.
Active (Active) <boolean>
Self-explanatory.
Strict (Strict) <boolean>
If true, players will not be able to order their allies to ignore the battle line by commanding them with impulse 50 (bound to C by default).

Inputs[edit | edit source]

Activate
Makes the entity active if it wasn't already.
Deactivate
Makes the entity inactive if it wasn't already.

See Also[edit | edit source]