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

LastHitTrait

const LastHitTrait: AuthorityOnlyTrait<Trait<{ tick: number; }>>

The tick of the last hit dealDamage dealt the entity, which health’s regeneration waits its regenDelaySeconds from: an entity never hit holds none, so a fresh spawn regenerates at once. The room’s alone, as DamageSourceTrait is, since health regenerates on the world that decides outcomes.