> For the complete documentation index, see [llms.txt](https://help.manu.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.manu.co/learn/manual/triggers/state-machine.md).

# 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="/files/VZdXCEL169v50FZ3AKqd" alt=""><figcaption></figcaption></figure>

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

#### State Started

![](/files/2zJvcSf94RMEHa8HOJhI)

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

#### State Continue

![](/files/6Rs2hSpBeTGDfMN4pNPx)

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>

![](/files/ssndcCNAHX48XoOap1Dd)

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="/files/SRA0LX3lRlSQ5ekOrJaa" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.manu.co/learn/manual/triggers/state-machine.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
