Skip to content
ASArcaneMP Scripting APIScripting reference
Data shapeClient APIGenerated

GateInfo

Defined in: client/api.d.ts:7811

A loaded gate of any kind.

bearing: number

Defined in: client/api.d.ts:7840

Relative bearing in degrees; 999 when unknown.


canClose: boolean

Defined in: client/api.d.ts:7855

setOpen(selector, false) closes it. False for a crawl grate, whose opening destroys it.


canLock: boolean

Defined in: client/api.d.ts:7860

setLocked works on it. Only portcullises have a lock.


cls: string

Defined in: client/api.d.ts:7820

Actor class name.


dist: number

Defined in: client/api.d.ts:7835

Distance in centimetres; -1 when unlocated.


optional hasBeenOpened?: boolean

Defined in: client/api.d.ts:7870

Portcullis only: opened or unlocked, so walking up to it raises it.


isLocked: boolean | null

Defined in: client/api.d.ts:7850

Lock flag; blocks a portcullis’ proximity re-open. Null for a kind without a lock.


isOpen: boolean

Defined in: client/api.d.ts:7845

Open, or opening. A rune gate reads true once it no longer blocks the way.


kind: "portcullis" | "runeGate" | "swingGate" | "crawlGrate"

Defined in: client/api.d.ts:7830

Which family of gate, and so which calls it supports.


lift: number | null

Defined in: client/api.d.ts:7865

How far open: 0 closed, 1 open. Null where the motion cannot be measured.


name: string

Defined in: client/api.d.ts:7815

Exact actor name.


path: string

Defined in: client/api.d.ts:7825

Full path name; distinguishes placements sharing a name.


optional useSchedule?: boolean

Defined in: client/api.d.ts:7875

Portcullis only: still raises at its open hour and lowers at its close hour off this client’s clock.


optional wantsToOpen?: boolean

Defined in: client/api.d.ts:7880

Portcullis only: stays raised once everyone has walked through; false lowers it a second after the last one leaves.


optional x?: number

Defined in: client/api.d.ts:7885

World X in centimetres; absent when unlocated.


optional y?: number

Defined in: client/api.d.ts:7890

World Y in centimetres; absent when unlocated.


optional z?: number

Defined in: client/api.d.ts:7895

World Z in centimetres; absent when unlocated.