Scripting/Server/Functions/BotWeapon
Gives the bot a weapon (WEP_*) and ammo and makes it the weapon it holds.
Syntax
BotWeapon(bot, weapon, ammo)Arguments
- any bot
- int weapon
- int ammo
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "botweapon" )
{
BotWeapon( 0, WEP_AK47, 250 );
}
}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)