Skip to content
ASArcaneMP Scripting APIScripting reference
Data shapeClient APIGenerated

LevelInteractionInfo

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

An object the game offers a native F prompt on, or one the server turned it off on.

readonly action: string | null

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

The verb the game’s prompt shows (“Open”, “Loot”, “Sit”, “Talk”…), or null when it sets none.


readonly actor: string

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

The actor’s name.


readonly class: string

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

The actor’s class.


readonly disabled: boolean

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

Whether the server keeps its prompt off.


readonly distance: number

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

Centimetres from where the search was centred.


readonly enabled: boolean

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

Whether it offers its prompt on this client right now.


readonly key: string | null

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

What LevelObjects.disableInteraction on the server takes; null for an actor spawned at runtime (an NPC, a dropped item), which no key names.


readonly position: Vec3

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

The actor’s world position.