# Unit.setWantsCrouch

Set a unit to crouch

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
unit:setWantsCrouch( wantCrouch )
```

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

**Availability:** Server only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `unit` | [Unit](../Game-Script-Environment/Userdata/Unit.md) | The unit. |
| `wantCrouch` | boolean | True if the unit should crouch |
