Skip to content

PlayerDiedPayload

What playerDied gets: the payload a handler receives.

type PlayerDiedPayload = {
player: PlayerSnapshot; position: Vector3; killer: PlayerSnapshot | null; weapon: number | null;
};
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.