Skip to content

PlayerHealthOrArmourDecreasedPayload

What playerHealthOrArmourDecreased gets: the payload a handler receives.

Renamed in 0.28 from DamageObservedPayload; see renamed names.

type PlayerHealthOrArmourDecreasedPayload = {
player: PlayerSnapshot;
healthChange: { before: number; after: number } | null;
armourChange: { before: number; after: number } | null;
provenance: "client-state";
attacker: null;
weapon: null;
after: number } | null;
after: number } | null;
};
Field Type Description
player PlayerSnapshot The player.
healthChange { before: number; after: number } | null The change in health, or null if health didn’t change.
armourChange { before: number; after: number } | null The change in armour, or null.
provenance "client-state" Where the observation comes from: the player’s own state reports.
attacker null Always null for now.
weapon null Always null for now.