> For the complete documentation index, see [llms.txt](https://docs.siminsights.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.siminsights.com/hyperskill-studio-authoring/state-machine-reference/actions/wait.md).

# Wait

Wait delays the actions that come after it in the state machine. A detailed explanation of controls and interface functions is described in the section [State Machine Builder User Interface](https://docs.google.com/document/d/1-o5qSv4zTkzj7YSmRTkV4zezFq7lwU00FyTy0kw1l1U/edit#bookmark=id.6vu41emx3478).

1. Within the edit Simulation section of the HyperSkill Desktop application, navigate to the State Machine tab.
2. Click on the desired state and, from the dropdown in either the entry or exit actions, select the type Wait.
3. Press the + button to add the action to the action list.

<figure><img src="https://2704613365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxYaaXoZ4YGbVdAnAhdcE%2Fuploads%2F8rKT5aUzCQfWTGizLNbm%2FWait.png?alt=media&#x26;token=f26ea790-b348-4f66-a55e-b962a8ee7a78" alt="" width="288"><figcaption></figcaption></figure>

4. Set the duration. It works as a delay before any actions after it in the state machine take place. This is particularly useful if you start an animation in a previous state and want to delay feedback until the animation completes.

You can either enter a fixed duration (in seconds), or use a Dynamic Duration, which links a Virtual Object's custom attribute (integer or float type) to control the wait time. Fixed duration is disabled when Dynamic Duration is active.

## Parameters

1. **Entity Type:** None (Fixed Duration) or Virtual Object.
2. **Entity:** The Virtual Object you want to choose.
3. **Attribute:** The custom attribute attached to the selected Virtual Object (must be a float or integer).
4. **Duration:** Direct time input (when using fixed duration).
