Entity
Entity Metatable Extensions
Functions
Entity:DistToSqr(other)
View source »Get the squared distance between this entity, and another vector or entity.
Parameters
Entity:Distance(other)
View source »Get the distance between this entity, and another vector or entity.
Parameters
Entity:GetNetVar(string, any)
View source »Get a variable on this entity
Parameters
-
string
key The key of the variable
-
any
default The default value of the variable
Returns
-
any
any The value of the variable
Entity:SetNetVar(Entity, string, any)
View source »Set a variable on this entity, which will be networked to all players
Parameters
-
Entity
ent The entity to network the variable to
-
string
key The key of the variable
-
any
value The value of the variable