Ai battle line: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Structure: Better description)
m (Cleaned up)
Line 1: Line 1:
{{wrongtitle|title=ai_battle_line}}
{{wrongtitle|title=ai_battle_line}}


==Structure==
==Entity Description==
 
<center>[[Image:Standoff_diagram.png]]</center>
<center>[[Image:Standoff_diagram.png]]</center>


Battle lines are a part of the [[Standoffs|Standoff]] AI schedule. They instruct NPCs to try and stay behind it to a configurable degree. See [[Standoffs]] for more information about the use of ai_battle_line.
Battle lines are a part of the [[Standoffs|Standoff]] AI schedule. They instruct NPCs to try and stay behind it to a configurable degree. See [[Standoffs]] for more information about the use of ai_battle_line.
==Entity Description==
Battle line


==Keyvalues==
==Keyvalues==


* {{kv targetname}}
* {{kv targetname}}
<!-- Source found at [[Template:KV Targetname]] -->
 
* {{kv parentname}}


* {{kv angles}}
* {{kv angles}}
<!-- Source found at [[Template:KV Angles]] -->
* {{kv parentname}}
<!-- Source found at [[Template:KV Parentname]] -->


* '''actor'''
* '''actor'''
Line 25: Line 19:


* '''Active'''
* '''Active'''
: <choices> Active
: {{boolean}} Active


* '''Strict'''
* '''Strict'''
: <choices> Player orders can override, applies to allies only
: {{boolean}} Player orders can override, applies to allies only
 


==Flags==
==Flags==


* Use parent's orientation
* 1 : Use parent's orientation
 


==Inputs==
==Inputs==


* '''Kill'''
* {{i targetname}}
: Removes this entity from the world.
 
* '''KillHierarchy'''
: Removes this entity and all its children from the world.
 
* '''AddOutput <string>'''
: Adds an entity I/O connection to this entity. Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>. Very dangerous, use with care.
 
* '''FireUser''1-4'''''
: Causes this entity's OnUser1-4 outputs to be fired. See [[User Inputs and Outputs]].


* {{i parentname}}
* {{i parentname}}
Line 55: Line 37:


* '''Deactivate'''
* '''Deactivate'''


==Outputs==
==Outputs==
Line 64: Line 45:


* [[Standoffs]]
* [[Standoffs]]


[[Category:Entities]]
[[Category:Entities]]

Revision as of 20:04, 6 April 2006

Template:Wrongtitle

Entity Description

Standoff diagram.png

Battle lines are a part of the Standoff AI schedule. They instruct NPCs to try and stay behind it to a configurable degree. See Standoffs for more information about the use of ai_battle_line.

Keyvalues

  • actor
<target_name_or_class> Actor(s) or squad to affect
  • Active
<boolean> Active
  • Strict
<boolean> Player orders can override, applies to allies only

Flags

  • 1 : Use parent's orientation

Inputs

  • Activate
  • Deactivate

Outputs

See Also