Scripting/Server/Events/onBotDeath
A bot made with CreateBot ran out of health (v0.5-beta). killer is the Player who shot it, or null when unknown. The bot stays dead until you remove it with DestroyBot.
Contents
Syntax
onBotDeath(bot, killer)Arguments
- any bot
- Player killer –
killeris the Player who shot it, ornullwhen unknown.
Example
function onBotDeath( bot, killer )
{
print( "onBotDeath fired" );
}This sample was generated from the signature – adapt the values to your gamemode.
Section: Bot events
Categories: Server events | Bot events