bot_proxy

From Valve Developer Community
Revision as of 11:33, 1 April 2017 by Nico (talk | contribs)
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
team ([todo internal name (i)]) <TFTeam>
...
Index String
0 auto
1 scout
2 sniper
3 soldier
4 demoman
5 medic
6 heavyweapons
7 pyro
8 spy
9 engineer
class ([todo internal name (i)]) <TFClass>
...
Index String
1 Auto
2 Red
3 Blue
spawn_on_start ([todo internal name (i)]) <boolean>
Spawn on start
respawn_interval ([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