> For the complete documentation index, see [llms.txt](https://docs.anvil.team/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.anvil.team/types/cliententity.md).

# clientEntity

A client entity, such as other players.

{% hint style="info" %}
To see the type of an individual property, please look at the struct [here](/types/cliententity.md#find-the-type-of-properties-here).
{% endhint %}

### Available Properties

* <mark style="color:purple;">`clientNumber`</mark>&#x20;
* <mark style="color:purple;">`origin`</mark>
* <mark style="color:purple;">`angles`</mark>&#x20;
* <mark style="color:purple;">`isAlive`</mark>
* <mark style="color:purple;">`isOnGround`</mark>
* <mark style="color:purple;">`team`</mark>&#x20;

### Methods

### <mark style="color:green;">`getName()`</mark>

Returns the name of this player.

**Example:**

```lua
-- Print closest players name
local closestPlayer = engine.getClosestPlayer()
print("The closest player is: " .. closestPlayer:getName())
```

### <mark style="color:green;">`getBoneOrigin(bone)`</mark>

* <mark style="color:purple;">`bone`</mark> - The bone you wish to get the origin for

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

{% hint style="info" %}
Available Bones:

* head
* helmet
* spine
* neck
* pelvis
  {% endhint %}

**Example:**

```lua
-- 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

```cpp
struct clientEntity
{
 	int clientNumber;
	Vec3 origin;
	Vec3 angles;
	bool isAlive;
	bool isOnGround;
	bool isInAir;
};
```
