Bot controller: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		 Warning:
Warning:
		
	
| Thunder4ik (talk | contribs) m (→Inputs: Unicodifying, replaced: {{Template: → {{ (4)) | m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.) | ||
| Line 1: | Line 1: | ||
| {{tf2  | {{this is a|e0|game=tf2|name=bot_controller}} | ||
| == Entity description == | == Entity description == | ||
| An entity used to create a bot, and then issue commands to it. | An entity used to create a bot, and then issue commands to it. | ||
Revision as of 09:12, 7 January 2024
bot_controller  is an   e0  available in  Team Fortress 2.
 Team Fortress 2.
 Warning:
Warning:
- The {{{game}}}parameter is inconsistent with the name defined by the {{tf2}} template. This can most likely be fixed by setting the value of the{{{game}}}parameter toTeam Fortress 2.
 If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.
Entity description
An entity used to create a bot, and then issue commands to it.
Keyvalues
- Team ([todo internal name (i)]) <choices>
- The team of the bot.
- 1 : Spectator
- 2 : Red
- 3 : Blue
 
- Class ([todo internal name (i)]) <choices>
- The class the bot will spawn as.
- 0 : Random
- 1 : Scout
- 2 : Sniper
- 3 : Soldier
- 4 : Demoman
- 5 : Medic
- 6 : Heavy
- 7 : Pyro
- 8 : Spy
- 9 : Engineer
 
Inputs
- CreateBot
- Create the bot for this controller.
- RespawnBot
- Force the bot to respawn.
- AddCommandMoveToEntity <targetname>
- Add a command to the bot's queue, telling it to move to the specified entity.
- AddCommandAttackEntity <targetname>
- Add a command to the bot's queue, telling it to attack the specified entity.
- AddCommandSwitchWeapon <integer>
- Add a command to the bot's queue, telling it to switch to the specified weapon slot.
- AddCommandDefend <float>
- Add a command to the bot's queue, telling it to defend the position it's standing at. The parameter specifies the distance from the point that the Bot is allowed to move to fight enemies.
- SetIgnoreHumans <integer>
- Set whether or not the Bot should ignore human players. 1 = ignore, 0 = don't ignore.
- PreventMovement <integer>
- Set whether or not the Bot is allowed to move. 1 = prevent movement, 0 = allow movement.
- ClearQueue
- Clear the bot's command queue.
Outputs
- OnCommandFinished
- Sent when a command is finished.