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

SuspendedTrait

const SuspendedTrait: CoreTrait<Record<string, never>>

On each NPC suspended this tick: the engine’s NPC systems leave it, and a machine that lists it in heldBy holds, as the routines’ does. Read it with hasTrait(npc, SuspendedTrait), and leave it out of a costly query with Not(SuspendedTrait). A page never holds a suspended NPC, so a page’s system reads it as absent. The engine adds and removes it each tick, and a game never writes it.