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

PreviousInteractChoiceTrait

const PreviousInteractChoiceTrait: AuthorityOnlyTrait<Trait<{ changedTick: number; interactable: Entity | null; presser: Entity | null; }>>

On each player entity, on the world that runs the rules alone: the player’s InteractChoiceTrait as it stood before its last change, and the tick it changed, which a key press already on its way as it changed still names. A checkpoint keeps it, so a restored room takes the same press.