bot_proxy

From Valve Developer Community
Revision as of 11:11, 7 September 2017 by Gatelych83 (talk | contribs) (Fixed up a few keyvalues)
Jump to navigation Jump to search

Documentation was created by... --Nico (talk) 18:32, 1 April 2017 (UTC)

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

Keyvalues

Bot Name ([todo internal name (i)]) <string>
The bot's player name
Class ([todo internal name (i)]) <TFClass>
...
Index String
0 auto
1 scout
2 sniper
3 soldier
4 demoman
5 medic
6 heavyweapons
7 pyro
8 spy
9 engineer
Team ([todo internal name (i)]) <TFTeam>
...
Index String
1 Auto
2 Red
3 Blue
Spawn on start ([todo internal name (i)]) <boolean>
Spawn on start
Respawn delay ([todo internal name (i)]) <float>
Respawn delay
Action point ([todo internal name (i)]) <targetname>
Put the name of a bot_action_point here to tell the bot to move to it when it spawns in.

Flags

Inputs

SetTeam <stringRedirectInput/string>
Change the bot's team (0:auto, 1:red, 2:blue)
SetClass <stringRedirectInput/string>
Change the bot's class (auto, soldier, pyro, etc)
SetMovementGoal <targetnameRedirectInput/string>
Tell the bot to move to the given goal.
Spawn
Spawn a TFBot at this position
Delete
Delete the existing TFBot

Outputs

OnSpawned
Sent when the TFBot has spawned into the environment
OnInjured
Sent when the TFBot has been injured
OnKilled
Sent when the TFBot has been killed
OnAttackingEnemy
Sent when the TFBot has started attacking an enemy
OnKilledEnemy
Sent when the TFBot has killed an enemy

See also