Ai goal follow: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Filled in (slightly bizarre) Formation values. Moved Limitations and Bugs to Description section.)
Line 2: Line 2:
==Entity Description==
==Entity Description==
[[Image:{{PAGENAME}}.png|left]]Makes the target NPCs follow another object or the player at a configurable distance.{{clr}}
[[Image:{{PAGENAME}}.png|left]]Makes the target NPCs follow another object or the player at a configurable distance.{{clr}}
===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.


==Keyvalues==
==Keyvalues==
Line 37: Line 42:
! Literal Value || Description
! Literal Value || Description
|-
|-
| ? || Close circle
| 0 || Close circle
|-
|-
| ? || Medium Circle
| 5 || Medium Circle
|-
|-
| ? || Wide circle
| 1 || Wide circle
|}
|}


Line 53: Line 58:
==Outputs==
==Outputs==
* {{o targetname}}
* {{o targetname}}
==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.


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

Revision as of 04:07, 25 May 2006

Template:Wrongtitle

Entity Description

Ai goal follow.png

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

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.

Keyvalues

<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> How to search for the entities using the actor.
Literal Value Description
0 Entity name
1 Classname
  • StartActive
<boolean>
  • MaximumState
<choices> The maximum state for NPCs to continue following.
Literal Value Description
0 Idle
1 Alert
2 Combat
  • Formation
<choices> How close to the target the NPCs should follow.
Literal Value Description
0 Close circle
5 Medium Circle
1 Wide circle

Inputs

Begin the follow behavior
  • Deactivate
Cease the following behavior

Outputs