Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

Damage

Health taken off an entity, who dealt it, with which weapon, the zone it struck, and what the game attaches to the hit.

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 she threw it for. Left out, it is source’s at the call; a hit with neither, a falling rock’s, has none and is never spared.
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.