Bot action point: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(More documentation)
Line 6: Line 6:
==Keyvalues==
==Keyvalues==
{{KV Targetname}}
{{KV Targetname}}
{{KV|Desired Distance|integer|How close (in units) the bot should get before being considered at this point.}}
{{KV|Next Action Point|string|The next Action Point to approach after performing this one.}}
{{KV|Stay Time|integer|How long the bot should remain at this point.}}
{{KV|Desired Distance|integer|The distance to get within when approaching this Action Point before the bot says it has reached it.}}
{{KV|Command|choices|What the bot will do when it reaches this point.}}
{{KV|Stay Time|integer|How long the bot should stay at this action point (while perform any commands if applicable).}}
{{KV|next_action_point|string|Next bot_action_point to go to.}} {{not in FGD}}
{{KV|Command|choices|Command to give to the bot when it gets within range of this Action Point.}}
:{| class=standard-table
! Literal Value || Description
|-
| taunt || Taunt
|-
| despawn || Leave the game
|-
| cloak || If Spy, Cloak
|-
| uncloak || If Spy, Uncloak
|-
| attack sentry at next action point || Attack sentry gun at next action point
|-
| disguise || If Spy, Disguise
|-
| build sentry at nearest sentry hint || If Engineer, build a sentry gun at the nearest sentry hint
|}


==Inputs==
==Inputs==

Revision as of 10:14, 4 June 2018

Team Fortress 2 bot_action_point is a point entity available in Team Fortress 2 Team Fortress 2.

Entity description

Used to mark a location where bots should perform a specific action.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Next Action Point ([todo internal name (i)]) <string>
The next Action Point to approach after performing this one.
Desired Distance ([todo internal name (i)]) <integer>
The distance to get within when approaching this Action Point before the bot says it has reached it.
Stay Time ([todo internal name (i)]) <integer>
How long the bot should stay at this action point (while perform any commands if applicable).
Command ([todo internal name (i)]) <choices>
Command to give to the bot when it gets within range of this Action Point.
Literal Value Description
taunt Taunt
despawn Leave the game
cloak If Spy, Cloak
uncloak If Spy, Uncloak
attack sentry at next action point Attack sentry gun at next action point
disguise If Spy, Disguise
build sentry at nearest sentry hint If Engineer, build a sentry gun at the nearest sentry hint

Inputs

Outputs

OnBotReached
Fires when the bot reaches this point.