Skip to content
ASArcaneMP Scripting APIScripting reference
Global objectServer APIGenerated

Gates

const Gates: object

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

Server-held gate state, for every kind of gate: portcullises, the rune gate, goblin camp gates and crawl grates. Every client applies it on arrival and again whenever a matching gate streams in, whatever that player’s save or gate policy says. A player can still open a lockless gate their own way until it next streams in.

clear(selector): boolean

Releases one selector. Its gates keep their current state until they restream into each player’s own save.

string

boolean

clearAll(): number

Releases every selector; returns how many were held.

number

get(selector): GateState | null

The state held under one selector.

string

GateState | null

list(): GateState[]

Every held gate state.

GateState[]

set(selector, state): boolean

Holds a gate’s lock and/or open state for every player. The selector is an actor name or a path name (Gates.list on a client shows both). A selector left holding nothing is released.

string

GateStateUpdate

boolean