NetObjectBase
Server-side base class for all networked entities. Inherits from the shared NetObjectBase.
Class Instance Methods
Inherited Methods
From NetObjectBase
:
NetObjectBase:GetPosition(): vec3
Returns the position of the object.
NetObjectBase:GetRotation(): vec3
Returns the rotation of the object.
NetObjectBase:GetHealth(): number
Returns the current health of the object.
NetObjectBase:GetMaxHealth(): number
Returns the maximum health of the object.
NetObjectBase:GetVelocity(): vec3
Returns the velocity of the object.
NetObjectBase:GetNetId(): number
Returns the network ID of the object.
NetObjectBase:GetData(key: string): any
Gets generic data from the object.
NetObjectBase:SetData(key: string, value: any, broadcast: bool): any
Sets generic data on the object. Value must be a number, string, bool, vec2, vec3, vec4, or quat. If broadcast is true, the data will be synchronized to all clients.