clientEntity

A client entity, such as other players.

To see the type of an individual property, please look at the struct here.

Available Properties

  • clientNumber

  • origin

  • angles

  • isAlive

  • isOnGround

  • team

Methods

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)

  • bone - The bone you wish to get the origin for

Returns the origin of the given bone of this clientEntity as a Vec3

Available Bones:

  • head

  • helmet

  • spine

  • neck

  • pelvis

Example:

Find the type of properties here

Last updated