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

HealthTrait

const HealthTrait: Trait<{ current: number; maximum: number; }>

Dies at zero. Where the entity has a maxHealth stat, the step sets maximum to it and clamps current under it.