Scripting/Squirrel/Client Events/Player::PlayerDeath

From Vice City Multiplayer
Revision as of 05:33, 12 July 2016 by Xmair (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.