Scripting/Squirrel/Client Events/Player::PlayerDeath
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
This event is called when a player dies.
Syntax
player - The instance.
Arguments
None.
Example
This will message the player's name when the player dies.
function Player::PlayerDeath( player )
{
Console.Print( player.Name + " has died." );
}
Notes
The event Script::ScriptLoad and function Console::Print were used in in this example. More info about them in the corresponding pages.