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

interactCommandDeclaration

const interactCommandDeclaration: CommandDeclaration<{ clicked: BooleanCommandField; target: EntityCommandField & object; }, "out-of-reach" | "other-match" | "not-a-target" | "not-chosen", undefined, true, false, false, false>

The interact command, as behaviours() declares it: the entity the player’s character, or another entity the player controls, presses, and clicked for a press a click on the entity sent, which names it whatever the room chose. Refused not-a-target where the Interact’s targets do not name the entity pressing. Refused out-of-reach where its body stands past the Interact’s radius and the room’s allowance. Refused other-match where the entity belongs to a match the player is outside of. Refused not-chosen for a key press on an exclusive Interact the room did not choose for the player within the last second.