Scripting/Server/Functions/DestroyBot

Removes a bot / whether this Player handle is a bot.

Syntax

DestroyBot(bot)
IsBot(player)

Arguments

Returns

IsBot: bool

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "destroybot" )
	{
		local result = DestroyBot( 0 );
		MessagePlayer( "DestroyBot returned: " + result, player );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Bots - virtual players (v0.5-beta)

Categories: Server functions | Bots - virtual players (v0.5-beta)