# State Machine

The state machine trigger detects events related to the states of the specified state machine. By tracking the states of the steates we can bind animations to them.

A state-machine trigger consists of two properties: State machine name and name of the state.

<figure><img src="https://4240499350-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lt-sE9MYKe9pZOcHwg5%2Fuploads%2F5oeBDHuLc88fDo7t540r%2FGroup%203.png?alt=media&#x26;token=24787fe1-3422-4c48-852e-8fc2ab02cdd4" alt=""><figcaption></figcaption></figure>

Conditions are tracked by three trigger modes: Started, Continue, End.

#### State Started

![](https://4240499350-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lt-sE9MYKe9pZOcHwg5%2Fuploads%2FfT2As9QevMLYJ2RuwTdC%2Fimage.png?alt=media\&token=dc672b63-40ba-4efc-ad22-4cbccfbe1151)

Trigger starts as soon as the specified state machine enters the specified state.

#### State Continue

![](https://4240499350-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lt-sE9MYKe9pZOcHwg5%2Fuploads%2FdnmEgTXKiLmoVTI0hBCi%2Fimage.png?alt=media\&token=79063554-dab0-43be-b002-5deb44de8dee)

Trigger starts and continues it's working as long as the specified state machine is in the specified state. Upon exiting that state, refered objects stops immediately.

#### State Stop <a href="#docs-internal-guid-cdc9fe4f-7fff-3466-3617-00bc246e7a04" id="docs-internal-guid-cdc9fe4f-7fff-3466-3617-00bc246e7a04"></a>

![](https://4240499350-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lt-sE9MYKe9pZOcHwg5%2Fuploads%2FakZuWNYOM9fLCNpEV20F%2Fimage.png?alt=media\&token=940aa378-3ad4-4ee8-951f-4f586186d131)

Trigger starts as soon as the specified state machine exits the specified state.

Trigger links from the states of the State machine in Game Flow actually represent a State machine trigger. You can choose to use this event more conveniently.

<figure><img src="https://4240499350-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lt-sE9MYKe9pZOcHwg5%2Fuploads%2FGO1YAciup3YZeAJPGE41%2FGroup%204.png?alt=media&#x26;token=a0bd2817-f453-4f33-9574-51c1772c964b" alt=""><figcaption></figcaption></figure>
