Skip to content
KCKingdoms Connected Scripting APIScripting guides and API
Data shapeServer APIGenerated

GateToggle

Defined in: server/api.d.ts:5671

accepted: boolean

Defined in: server/api.d.ts:5675

Whether a cycle started.


opening: boolean

Defined in: server/api.d.ts:5685

The direction taken, or the one that was refused.


reason: string

Defined in: server/api.d.ts:5680

Why nothing moved, as a phrase that reads after the gate’s name: is already open, is already closing. Empty when a cycle started.


seconds: number

Defined in: server/api.d.ts:5690

How long the motion still has to run. 0 when nothing moved.