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

tryControl

tryControl(authority, controller, entity, options): ControlResult

control, returning the refusal rather than throwing it: what a seat calls with { from: null }, so two riders who reach for it in one tick get one { ok: true } and one ControlRefusal.ControlledByOther.

Parameter Type
authority EntityAuthority
controller Entity
entity Entity
options ControlOptions

ControlResult