core.metatables.sh_entity
(no description)
Functions
DistToSqr(other)
View source »Get the squared distance between this entity, and another vector or entity.
Parameters
-
other
Vector or Entity
Distance(other)
View source »Get the distance between this entity, and another vector or entity.
Parameters
-
other
Vector or Entity
GetBodyGroupsString()
View source »Get the body groups as a string suitable for SetBodyGroups.
Returns
GetPlayerOwner()
View source »Convenience function to get the owner of an entity properly
Returns
-
optional
Player who owns this entity, nil if no one
RemovePlayerOwner()
View source »Convenience function to reset an entity's owner status to none
SetBodyGroupsString(bodyGroupsString)
View source »Set the body groups from a string. This should be the same as SetBodyGroups, but that doesn't work on some client entities?
Parameters
-
bodyGroupsString
string
See Also
SetPlayerOwner(client, canPhys)
View source »Convenience function to set a player as the owner of an entity properly
Parameters
-
client
Player
Player to set as owner
-
canPhys
boolean
If the player can physgun the entity