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.
Properties
Section titled “Properties”action
Section titled “action”
readonlyaction: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.
readonlyactor:string
Defined in: client/api.d.ts:8441
The actor’s name.
readonlyclass:string
Defined in: client/api.d.ts:8446
The actor’s class.
disabled
Section titled “disabled”
readonlydisabled:boolean
Defined in: client/api.d.ts:8471
Whether the server keeps its prompt off.
distance
Section titled “distance”
readonlydistance:number
Defined in: client/api.d.ts:8456
Centimetres from where the search was centred.
enabled
Section titled “enabled”
readonlyenabled:boolean
Defined in: client/api.d.ts:8466
Whether it offers its prompt on this client right now.
readonlykey: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.
position
Section titled “position”
readonlyposition:Vec3
Defined in: client/api.d.ts:8451
The actor’s world position.