Scripting/Squirrel/Client Events/Player::PlayerDeath

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
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.