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

InteractProps

Property Type Default value Description
onInteract? () => void undefined Fired on the interact action’s key while near. Client behaviour, so a callback is allowed: it opens local UI, and the consequence is another behaviour’s data. Each press also emits InteractedEvent on the entity, which an NPC’s routine answers; in a room, on the room’s copy.
prompt string undefined Shown above the entity while the player’s character is near.
radius? number 1.5 Metres from the entity within which she is near.