# sm.camera.getCameraState

Gets the camera's control state.

**Kind:** Function

**Environments:** Game

## Game

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

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

**Availability:** Client only

**Returns:**

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