Entity
Defined in: shared.d.ts:63
Base networked entity handle, provided by the MafiaHub Framework.
Methods
Section titled “Methods”toString()
Section titled “toString()”toString():
string
Defined in: shared.d.ts:74
Returns
Section titled “Returns”string
Properties
Section titled “Properties”
readonlyid:number
Defined in: shared.d.ts:65
Network id, stable for the entity’s lifetime.
position
Section titled “position”position:
Vector3
Defined in: shared.d.ts:67
World position. Read, call set(...), then assign back.
rotation
Section titled “rotation”rotation:
Vector3|Quaternion
Defined in: shared.d.ts:69
Reads as a quaternion; assignments also accept Euler angles in degrees.
readonlystate:StateBag
Defined in: shared.d.ts:71
This entity’s key/value state: the server writes it, and every client that can see the entity receives it. See StateBag.
virtualWorld
Section titled “virtualWorld”
readonlyvirtualWorld:number
Defined in: shared.d.ts:73
The virtual world this entity replicates in. Read-only: change it with setVirtualWorld on the server.