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

PendingCastTrait

const PendingCastTrait: LocalTrait<Trait<{ ability: string; player: Entity | null; request: number; standingSeconds: number; target: Entity | null; walkedTo: () => Vector3 | null; walks: boolean; }>>

A cast at a target past the ability’s range, waiting while the caster walks into range: the ability, the target, the page’s request id. Also holds whether this world walks the caster there, the destination of the last walk it sent the caster on, and the seconds the caster has stood out of range. The player’s page and a game played alone walk the caster; a room runs the walks the player’s page sends and starts the cast once the caster is in range. The player’s page holds a copy of its own, written as the player’s step first takes the press and never in a replay. Nothing is held back until the cast starts, so a pending cast dropped costs nothing.