Skip to content
ASArcaneMP Scripting APIScripting reference
Global objectClient APIGenerated

LevelObjects

const LevelObjects: object

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

Placed objects of the game’s own levels, by the keys the server’s LevelObjects.hide and disableInteraction take. World.lineTrace reports the key of what it hits. The client hides what the server lists, and never characters, controllers, the level’s info actors or anything spawned at runtime.

describe(key): LevelObjectInfo | null

The object a key names, or null while its level is not loaded here.

string

LevelObjectInfo | null

disabledInteractions(level?): string[]

Every key whose F prompt the server keeps off, sorted; only one level’s when a level name is given.

string

string[]

hidden(level?): string[]

Every key the server hides, sorted; only one level’s when a level name is given.

string

string[]

interactions(options?): LevelInteractionInfo[]

The game’s native F interaction points around the local player (or center), nearest first: every actor registered with the Interact sense, plus the ones the server turned off. Only what is loaded here is listed. Empty before the player spawns.

LevelInteractionsOptions

LevelInteractionInfo[]

isHidden(key): boolean

Whether the server hides this object, as this client last heard.

string

boolean

isInteractionDisabled(key): boolean

Whether the server keeps this actor’s F prompt off, as this client last heard.

string

boolean

near(options?): LevelObjectInfo[]

Placed objects this client could hide within a radius of the local player (or center), nearest first, each with its distance. Filter by what is on screen with visible, and by what the server hides with hidden. Empty before the player spawns.

LevelObjectsNearOptions

LevelObjectInfo[]

objects(level): LevelObjectInfo[]

Every placed actor this client could hide in a loaded level, e.g. “SUB_GEN_A_POP_One” (a Hogsmeade house’s furniture). Empty while the level is not loaded.

string

LevelObjectInfo[]

seats(options?): LevelSeat[]

The world’s chairs, benches and beds near the local player (or center), nearest first: one row per place the game would sit a character, keyed alike on every client. position is where the game starts its sit (the seat’s floor-level connection) and yaw the way it faces. Radius 1500 cm and limit 20 by default; visible, hidden and instances are ignored. The scan is cached for 5 s or until a level streams.

LevelObjectsNearOptions

LevelSeat[]