Ai goal follow: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Technical limitations)
No edit summary
Line 4: Line 4:


==Keyvalues==
==Keyvalues==
* '''Actor(s) to affect:''' the name of the NPCs that will be following.
* [[Targetname]]
* '''Target Entity:''' the name of the entity that the NPCs should follow.
* '''actor'''
** If this value is blank, NPCs will follow the player if they are friendly towards him
* <target_name_or_class> The name of the NPCs that will be following.
* '''Search Type:''' is '''Actor(s) to affect''' the NPC name or class?
* '''goal'''
* '''Maximum state:''' The maximum state for NPCs to continue following. If this value is set to '''idle''' for instance, '''alert''' NPCs will ignore the goal.
: <string> The name of the entity that the NPCs should follow.
* '''Formation:''' how close to the target the NPCs should follow.
: * If this value is blank, NPCs will follow the player if they are friendly towards him
* '''SearchType'''
: <choices>
:* Entity Name
:* Classname
* '''StartActive'''
: <boolean>
* '''MaximumState'''
: <choices> The maximum state for NPCs to continue following.
:* Idle
:* Alert
:* Combat
* '''Formation'''
: <choices> How close to the target the NPCs should follow.
:* Close circle
:* Wide circle
:* Medium circle


==Inputs==
==Inputs==
* '''Activate/Deactivate:''' begin or end the following behaviour
* [[Targetname]]
* '''Activate'''
: Begin the follow behavior
* '''Deactivate'''  
: Cease the following behaviour
 
==Outputs==
* [[Targetname]]


==Limitations and bugs==
==Limitations and bugs==

Revision as of 19:40, 9 July 2005

Template:Wrongtitle

Makes the target NPCs follow another object or the player at a configurable distance.

Keyvalues

  • Targetname
  • actor
  • <target_name_or_class> The name of the NPCs that will be following.
  • goal
<string> The name of the entity that the NPCs should follow.
* If this value is blank, NPCs will follow the player if they are friendly towards him
  • SearchType
<choices>
  • Entity Name
  • Classname
  • StartActive
<boolean>
  • MaximumState
<choices> The maximum state for NPCs to continue following.
  • Idle
  • Alert
  • Combat
  • Formation
<choices> How close to the target the NPCs should follow.
  • Close circle
  • Wide circle
  • Medium circle

Inputs

Begin the follow behavior
  • Deactivate
Cease the following behaviour

Outputs

Limitations and bugs

  • NPCs do not intelligently follow their target. They will instead walk or run depending on distance directly towards it.
  • If NPCs are following another NPC and that NPC needs to get past them, they will not move out of the way and the leading NPC will eventually give up.
  • Keyvalues cannot be changed once the map has been compiled.