Scripting/Squirrel/Client Events/Player::PlayerDeath: Difference between revisions

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
(Created page with "This event is called when a player dies. == Syntax == <pre>player - The instance.</pre> == Arguments == None. == Example == This will message the player's name when the p...")
 
(No difference)

Latest revision as of 05:33, 12 July 2016

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.