clientEntity
A client entity, such as other players.
Available Properties
clientNumberoriginanglesisAliveisOnGroundteam
Methods
getName()
getName()Returns the name of this player.
Example:
-- Print closest players name
local closestPlayer = engine.getClosestPlayer()
print("The closest player is: " .. closestPlayer:getName())getBoneOrigin(bone)
getBoneOrigin(bone)bone- The bone you wish to get the origin for
Returns the origin of the given bone of this clientEntity as a Vec3
Example:
-- The head position of the closest player
local closestPlayer = engine.getClosestPlayer()
local head = closestPlayer:getBoneOrigin("head")
print("The closest players head is at " .. head:toString())Find the type of properties here
struct clientEntity
{
int clientNumber;
Vec3 origin;
Vec3 angles;
bool isAlive;
bool isOnGround;
bool isInAir;
};Last updated