ObjectInteraction
Defined in: client/api.d.ts:8617
One of the game’s own interactables the local player pressed F on.
Properties
Section titled “Properties”
readonlyactor:object
Defined in: client/api.d.ts:8621
The object’s name and class. Names are this client’s own and differ between clients; send levelObject or entity instead.
class:
string
name:
string
entity
Section titled “entity”
readonlyentity: {id:number;type:"beast"|"player"|"npc"|"worldObject"|"character"; } |null
Defined in: client/api.d.ts:8631
The replicated entity whose body this is, or null.
levelObject
Section titled “levelObject”
readonlylevelObject:string|null
Defined in: client/api.d.ts:8626
The LevelObjects key of a placed level object, the same on every client; null for an entity and for anything spawned at runtime.
position
Section titled “position”
readonlyposition:Vec3
Defined in: client/api.d.ts:8636
Where the object stands.