Skip to content
ASArcaneMP Scripting APIScripting reference
Global objectClient APIGenerated

Doors

const Doors: object

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

Logic locks and loaded physical doors.

held(): HeldDoorState[]

Door state the server holds, re-applied to each door as it streams in.

HeldDoorState[]

isSuperAlohomora(): boolean

Whether the lock master key is on.

boolean

isUnlocked(lockId): boolean | null

Reads a logic lock.

string

boolean | null

list(radius?): DoorInfo[]

Lists nearby loaded doors.

number

DoorInfo[]

openNearby(radius?): number

Opens nearby doors.

number

number

policy(): DoorPolicy

The streamed-door enforcement policy last set.

DoorPolicy

setLock(lockId, unlocked?): boolean

Sets a logic lock for the rest of the session: now, and again after every world load (which puts logic locks back to the game’s defaults), until disconnect. Opening M_OLI_01_HogwartsExteriors also takes down the glass walls fencing the castle’s southern exits, the boathouse stairway gate among them, which the game removes only as their level loads. False when there is no lock manager yet; the next world load still applies it.

string

boolean

boolean

setLocked(selector, locked?): number

Locks or unlocks, on this client only, every loaded door matching an actor name, a persistent id (holds ‘:’) or an asset path (holds ‘/’). A restream undoes it; the server’s Doors.set holds. Returns how many matched.

string

boolean

number

setOpen(name, open?): boolean

Changes one door.

string

boolean

boolean

setPolicy(policy): number

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

DoorPolicy

number

superAlohomora(enable?): boolean

Toggles the lock master key: every lock opens to a key or Alohomora press, whatever the player’s Alohomora level, key-only locks included. Server-held locks still refuse. Cleared on disconnect. False when the key could not be reached.

boolean

boolean

unlockNearby(radius?): number

Unlocks nearby doors.

number

number