bot_proxy

From Valve Developer Community
Jump to: navigation, search

bot_proxy is a point entity available in Team Fortress 2 Team Fortress 2. It creates a functioning bot which can move around and attack players or other bots.

Note.pngNote:The bots are kicked after death.
Warning.pngWarning:This entity appears to be unfinished as indicated by its broken functionality, bot_generator or bot_controller should be used instead.
Confirm:This entity may have worked previously, but may have been since broken by an update.

Keyvalues

Bot Name (???) <string>
Name of the bot.
Icon-Bug.pngBug:Creates random gibberish names if specified, otherwise it is named TFBot(number).
Class (???) <string>
Class of the bot. Options are: auto, scout, sniper, soldier, demoman, medic, heavyweapons, pyro, spy and engineer.
Icon-Bug.pngBug:Does not function, always picks a random class. SetClass input works, however.
Team (???) <string>
Team of the bot. Options are: auto, red and blue.
Icon-Bug.pngBug:Does not function, always picks the red team. SetTeam input works, however.
Spawn on start (???) <boolean>
Spawn a bot when the round starts.
Icon-Bug.pngBug:Does not function, use the Spawn input instead.
Respawn delay (???) <float>
If non-zero, respawn a bot N seconds after it dies.
Icon-Bug.pngBug:Cannot function since the bot is kicked on death.
Action point (???) <targetname>
Name of a bot_action_point to tell a bot to move to it when it spawns in.
Icon-Bug.pngBug:Does not function.

Inputs

SetTeam <string>
Changes the bot team immediately. Options are: auto, red and blue.
SetClass <string>
Change the bot class immediately. Options are: auto, scout, sniper, soldier, demoman, medic, heavyweapons, pyro, spy and engineer.
SetMovementGoal <targetname>
Tell a bot to move to the given goal.
Icon-Bug.pngBug:Does not function.
Spawn
Spawn a bot at this bot_proxy.
Delete
Delete any existing bots from this bot_proxy.

Outputs

OnSpawned
Sent when a TFBot has spawned.
OnInjured
Sent when a TFBot has been injured.
Icon-Bug.pngBug:Does not function.
OnKilled
Sent when a TFBot has been killed.
Icon-Bug.pngBug:Does not function.
OnAttackingEnemy
Sent when a TFBot has started attacking an enemy.
Icon-Bug.pngBug:Does not function.
OnKilledEnemy
Sent when a TFBot has killed an enemy.
Icon-Bug.pngBug:Does not function.

See also