OnPlayerDeath: Difference between revisions
From Onset Developer Wiki
No edit summary |
m Player server events and description. |
||
Line 1: | Line 1: | ||
{{Info|Event|Server & Client|1.0}} | {{Info|Event|Server & Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Calls when a player dies by any means possible. If the player wasn't killed by another player, instigator will be the same as the player.}} | ||
{{FuncSyntax|OnPlayerDeath(player, instigator)}} | {{FuncSyntax|OnPlayerDeath(player, instigator)}} | ||
Line 13: | Line 13: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{ | {{PlayerServerEvents}} |
Revision as of 07:54, 16 January 2020
Description
Calls when a player dies by any means possible. If the player wasn't killed by another player, instigator will be the same as the player.
Syntax
OnPlayerDeath(player, instigator)
Parameters
- player
The player that has died. - instigator
The player who is responsible for the death.
Example
__EDIT_ME__