# Unit.setMovementType

Sets the movment type for a unit

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
unit:setMovementType( moveTypeName )
```

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

**Availability:** Server only

moveType can be "stand", "walk", "sprint" or "crouch"

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `unit` | [Unit](../Game-Script-Environment/Userdata/Unit.md) | The unit. |
| `moveTypeName` | string | The movement type to set |
