Skip to content
ASArcaneMP Scripting APIScripting reference
Global objectClient APIGenerated

Gates

const Gates: object

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

Every kind of gate in the world: portcullises, the rune gate, goblin camp gates and crawl grates. None is a Door: a Doors.* call never matches one.

freezeSchedule(selector): number

Cancels matching portcullises’ clock callbacks so the hour stops raising and lowering them. Returns how many matched.

string

number

held(): HeldGateState[]

Gate state the server holds, re-applied to each gate as it streams in. It beats the gate policy.

HeldGateState[]

list(radius?, kind?): GateInfo[]

Lists loaded gates, nearest first; radius 0 means every loaded one.

number

"portcullis" | "runeGate" | "swingGate" | "crawlGrate" | ("portcullis" | "runeGate" | "swingGate" | "crawlGrate")[]

GateInfo[]

policy(): GatePolicy

The streamed-gate enforcement policy last set, with kinds spelled out and every list present.

GatePolicy

setLocked(selector, locked?): number

Locks (and closes) or unlocks matching gates, on this client only. Only portcullises have a lock; returns how many matched and support it.

string

boolean

number

setOpen(selector, open?): number

Opens (and unlocks) or closes every loaded gate matching an actor name or path name, on this client only. A restream undoes it. Returns how many matched and support it.

string

boolean

number

setPolicy(policy): number

Sets streamed-gate enforcement and applies it to every loaded gate; returns how many were checked.

GatePolicy

number