PlayerDiedPayload
What playerDied gets: the payload a handler receives.
Definition
Section titled “Definition”type PlayerDiedPayload = { player: PlayerSnapshot; position: Vector3; killer: PlayerSnapshot | null; weapon: number | null;};Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
player |
PlayerSnapshot |
The player. |
position |
Vector3 |
Where they died. |
killer |
PlayerSnapshot | null |
The player whose game reported the last hit on this one within 5 seconds, or null without one. |
weapon |
number | null |
That hit’s weapon type, or null. |
Related
Section titled “Related”playerDied: the event