# sm.camera.setCameraState

Sets the camera's control state.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.camera.setCameraState( state )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.camera.md#setcamerastate)

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `state` | integer | How the camera is moved. (See [sm.camera.state](../Game-Script-Environment/Static-Functions/sm.camera.md#state)) |
