> For the complete documentation index, see [llms.txt](https://unfinishedstudios1.gitbook.io/fp-motion/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://unfinishedstudios1.gitbook.io/fp-motion/components/state-handler/api.md).

# API

## Fields

| Field               | Description                                         |
| ------------------- | --------------------------------------------------- |
| unarmedCameraStates | Sets the state data for when the player is unarmed. |

## Functions

## GetState

<mark style="color:blue;">`GET`</mark> `GetState(bool isWeapon)`

Invoking this function will return the *StateData* for the camera or the guns, depending on the isWeapon boolean.

#### Path Parameters

| Name     | Type    | Description                                               |
| -------- | ------- | --------------------------------------------------------- |
| IsWeapon | boolean | Determines whether you need the camera or the gun's data. |

{% tabs %}
{% tab title="200 As you can see in this example, we can easily get the current data for the camera by using this function." %}

```csharp
//Get the camera's data.
StateData cameraData = PlayerStateHandler.Instance.GetState(false);
```

{% endtab %}
{% endtabs %}
