OnPlayerDeath: Difference between revisions

From Onset Developer Wiki
Chloe (talk | contribs)
m Player server events and description.
Chloe (talk | contribs)
mNo edit summary
Line 13: Line 13:


{{RelatedFunctions}}
{{RelatedFunctions}}
{{PlayerServerEvents}}
{{PlayerEvents}}

Revision as of 08:03, 16 January 2020

OnPlayerDeath

Type: Event
Context: Server & Client
Introduced: v1.0

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__

See also