# Character.getUnit

Returns the unit controlling the character.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
character:getUnit(  )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/Character.md#getunit)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `character` | [Character](../Game-Script-Environment/Userdata/Character.md) | The character. |

**Returns:**

| Type | Description |
| --- | --- |
| [Unit](../Game-Script-Environment/Userdata/Unit.md) | The unit controlling the character. |
