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

NpcTrait

const NpcTrait: Trait<{ clip: string; entered: number; faction: Faction; heldTick: number | null; home: () => Vector3; isWalkingToTarget: boolean; leash: number; leg: number; legEndTick: number; level: number; line: string; lineEndTick: number | null; name: string; near: boolean; pass: number; pauseEndTick: number | null; routine: string; step: string; stepTick: number; title: string; walkedToX: number; walkedToZ: number; walkStep: string; }>

What an NPC is, and what its routine is doing: the names over its head, the step it is on and how far round its route it has come. The routine system writes the second half as it changes: each timer keeps the tick it started or ends on, so a routine that only waits writes nothing.