Skip to content
ASArcaneMP Scripting APIScripting reference
Global objectServer APIGenerated

LevelObjects

const LevelObjects: object

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

Placed objects of the game’s own levels (furniture, props, walls) that the server hides for every player, and placed actors whose native F prompt it turns off. A key names one: “:” for a whole actor, or “:.#” for one copy of an instanced mesh. A client’s World.lineTrace reports the key of what it hit, and LevelObjects.objects lists a loaded level’s. Each client hides the object and turns its collision off, now and whenever its level streams back in. What may be hidden is the server’s call: clients refuse only characters, controllers, the level’s info actors and anything spawned at runtime.

count(): number

How many objects the server hides.

number

disabledInteractions(level?): string[]

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

string

string[]

disableInteraction(key): boolean

Turns a placed actor’s native F prompt off for every player (a chest, door, page or bench the game offers to interact with), now and whenever its level streams back in, and again whenever the game turns it back on. The actor stays as it was otherwise. A client’s LevelObjects.interactions lists the keys. False only when 50000 are already off, or the level’s list is full.

string

boolean

enableAllInteractions(level?): number

Gives every F prompt the server turned off back, or one level’s; returns how many.

string

number

enableInteraction(key): boolean

Gives a placed actor its F prompt back for every player, where the game offered it while it was off. False when it was not off.

string

boolean

hide(key): boolean

Hides an object for every player. False only when the server already hides 50000 objects, or the level’s list is full.

string

boolean

isHidden(key): boolean

Whether the server hides this object.

string

boolean

isInteractionDisabled(key): boolean

Whether the server keeps this actor’s F prompt off.

string

boolean

list(level?): string[]

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

string

string[]

show(key): boolean

Brings a hidden object back for every player. False when it was not hidden.

string

boolean

showAll(level?): number

Brings back every hidden object, or one level’s; returns how many.

string

number