PlayerHealthOrArmourDecreasedPayload
What playerHealthOrArmourDecreased gets: the payload a handler receives.
Renamed in 0.28 from DamageObservedPayload; see renamed names.
Definition
Section titled “Definition”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;};Fields
Section titled “Fields”| 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. |
Related
Section titled “Related”playerHealthOrArmourDecreased: the event