Skip to content
FMFallout Multiplayer Scripting APIScripting guides and API
Data shapeClient APIGenerated

Entity

Defined in: shared.d.ts:38

Base networked entity handle on the client, provided by the MafiaHub Framework. Vector3 and Quaternion are the generated globals.

setVirtualWorld(world): void

Defined in: shared.d.ts:46

number

void


setVisibleTo(player): void

Defined in: shared.d.ts:47

Entity | null

void


toString(): string

Defined in: shared.d.ts:48

string

readonly id: number

Defined in: shared.d.ts:40

Network id, stable for the entity’s lifetime.


position: Vector3

Defined in: shared.d.ts:42

World position. Read, call set(...), then assign back.


rotation: Vector3 | Quaternion

Defined in: shared.d.ts:44

Reads as a quaternion; assignments also accept Euler angles in degrees.


virtualWorld: number

Defined in: shared.d.ts:45