LevelObjects
constLevelObjects: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.
Type Declaration
Section titled “Type Declaration”describe()
Section titled “describe()”describe(
key):LevelObjectInfo|null
The object a key names, or null while its level is not loaded here.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”LevelObjectInfo | null
disabledInteractions()
Section titled “disabledInteractions()”disabledInteractions(
level?):string[]
Every key whose F prompt the server keeps off, sorted; only one level’s when a level name is given.
Parameters
Section titled “Parameters”level?
Section titled “level?”string
Returns
Section titled “Returns”string[]
hidden()
Section titled “hidden()”hidden(
level?):string[]
Every key the server hides, sorted; only one level’s when a level name is given.
Parameters
Section titled “Parameters”level?
Section titled “level?”string
Returns
Section titled “Returns”string[]
interactions()
Section titled “interactions()”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.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”isHidden()
Section titled “isHidden()”isHidden(
key):boolean
Whether the server hides this object, as this client last heard.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
isInteractionDisabled()
Section titled “isInteractionDisabled()”isInteractionDisabled(
key):boolean
Whether the server keeps this actor’s F prompt off, as this client last heard.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
near()
Section titled “near()”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.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”objects()
Section titled “objects()”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.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”seats()
Section titled “seats()”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.