Scripting/Server/Functions/BotKeys
Sets what the bot is "holding down": add the BOT_* constants (appendix A.13), for example BOT_FORWARD | BOT_SPRINT. 0 stops it.
Syntax
BotKeys(bot, mask)Arguments
- any bot
- any mask
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "botkeys" )
{
BotKeys( 0, 0 );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
Section: Bots - virtual players (v0.5-beta)
Categories: Server functions | Bots - virtual players (v0.5-beta)