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.

Syntax

onBotDeath(bot, killer)

Arguments

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