public struct PlayerDiedEvent : IEventPayload

Payload for the "PlayerDied" event.


public PlayerControllerWrapper GetDiedPlayer()

(Client/Server) Get the player that died.

Returns: (PlayerController) The dead player.


public uint GetInflictorID()

(Client/Server) Get the inflictor's network ID.

Returns: (uint) Either the inflictor's network ID, if the inflictor was a networked object, or uint.MaxValue if it wasn't.


public byte GetWeaponAction()

(Client/Server) Get the weapon action that was used to kill this player.

Returns: (byte) The weapon action index.


public PlayerControllerWrapper GetKillerPlayer()

(Client/Server) Get the killer player if it exists.

Returns: (uint) Either a reference to the killer player, if the inflictor was a killer, or null if it wasn't.