Bot proxy: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
m (Substituted IO templates)
Line 19: Line 19:


== Inputs ==
== Inputs ==
{{IO|SetTeam|Changes the bot team immediately. Options are: auto, red and blue.|param=string}}
{{I|SetTeam|Changes the bot team immediately. Options are: auto, red and blue.|param=string}}
{{IO|SetClass|Change the bot class immediately. Options are: auto, scout, sniper, soldier, demoman, medic, heavyweapons, pyro, spy and engineer.|param=string}}
{{I|SetClass|Change the bot class immediately. Options are: auto, scout, sniper, soldier, demoman, medic, heavyweapons, pyro, spy and engineer.|param=string}}
{{IO|SetMovementGoal|Tell a bot to move to the given goal.|param=target_destination}}
{{I|SetMovementGoal|Tell a bot to move to the given goal.|param=target_destination}}
:{{bug|Does not function.}}
:{{bug|Does not function.}}
{{IO|Spawn|Spawn a bot at this bot_proxy.}}
{{I|Spawn|Spawn a bot at this bot_proxy.}}
{{IO|Delete|Delete any existing bots from this bot_proxy.}}
{{I|Delete|Delete any existing bots from this bot_proxy.}}


== Outputs ==
== Outputs ==
{{IO|OnSpawned|Sent when a TFBot has spawned.}}
{{O|OnSpawned|Sent when a TFBot has spawned.}}
{{IO|OnInjured|Sent when a TFBot has been injured.}}
{{O|OnInjured|Sent when a TFBot has been injured.}}
:{{bug|Does not function.}}
:{{bug|Does not function.}}
{{IO|OnKilled|Sent when a TFBot has been killed.}}
{{O|OnKilled|Sent when a TFBot has been killed.}}
:{{bug|Does not function.}}
:{{bug|Does not function.}}
{{IO|OnAttackingEnemy|Sent when a TFBot has started attacking an enemy.}}
{{O|OnAttackingEnemy|Sent when a TFBot has started attacking an enemy.}}
:{{bug|Does not function.}}
:{{bug|Does not function.}}
{{IO|OnKilledEnemy|Sent when a TFBot has killed an enemy.}}
{{O|OnKilledEnemy|Sent when a TFBot has killed an enemy.}}
:{{bug|Does not function.}}
:{{bug|Does not function.}}


== See also ==
== See also ==
* [[bot_action_point]]
* [[bot_action_point]]

Revision as of 07:52, 21 April 2025

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 ([todo internal name (i)]) <string>
Name of the bot.
Icon-Bug.pngBug:Creates random gibberish names if specified, otherwise it is named TFBot(number).  [todo tested in ?]
Class ([todo internal name (i)]) <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.  [todo tested in ?]
Team ([todo internal name (i)]) <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.  [todo tested in ?]
Spawn on start ([todo internal name (i)]) <boolean>
Spawn a bot when the round starts.
Icon-Bug.pngBug:Does not function, use the Spawn input instead.  [todo tested in ?]
Respawn delay ([todo internal name (i)]) <float>
If non-zero, respawn a bot N seconds after it dies.
Icon-Bug.pngBug:Cannot function since the bot is kicked on death.  [todo tested in ?]
Action point ([todo internal name (i)]) <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.  [todo tested in ?]

Inputs

SetTeam <stringRedirectInput/string>
Changes the bot team immediately. Options are: auto, red and blue.
SetClass <stringRedirectInput/string>
Change the bot class immediately. Options are: auto, scout, sniper, soldier, demoman, medic, heavyweapons, pyro, spy and engineer.
SetMovementGoal <targetnameRedirectInput/string>
Tell a bot to move to the given goal.
Icon-Bug.pngBug:Does not function.  [todo tested in ?]
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.  [todo tested in ?]
OnKilled
Sent when a TFBot has been killed.
Icon-Bug.pngBug:Does not function.  [todo tested in ?]
OnAttackingEnemy
Sent when a TFBot has started attacking an enemy.
Icon-Bug.pngBug:Does not function.  [todo tested in ?]
OnKilledEnemy
Sent when a TFBot has killed an enemy.
Icon-Bug.pngBug:Does not function.  [todo tested in ?]

See also