Damage
Health taken off an entity, who dealt it, with which weapon, the zone it struck, and what the game attaches to the hit.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
amount |
number |
- |
data? |
Readonly<Readonly<Record<string, unknown>>> | null |
The game’s own data for the hit, as its hitData registers it. |
friendlyFire? |
boolean | null |
This hit’s own friendly fire, over the world’s, as a weapon’s friendlyFire passes it. Left out, the world’s at the moment it lands. |
instigator? |
Instigator | null |
Who is behind the hit, taken with readInstigator as it was made, so a grenade that lands after its thrower switched is judged by the team the thrower threw it for, and its records credit that team. Left out, it is source’s at the call; null, or a hit with neither, a falling rock’s, has none: it is never spared and credits no player or team. |
source? |
Entity | null |
- |
weapon? |
string | null |
The weapon’s name as registerWeapon names it. |
zone? |
string | null |
The zone of the entity’s HitZonesTrait it struck, which the hit carries; amount already holds its multiplier. |