# Wait

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 state to the action list.

<figure><img src="/files/PLfKmHmxzblYTILtZSIM" alt="" width="288"><figcaption></figcaption></figure>

4. &#x20;The duration functions as a delay before any actions after it in the state machine will take place. This is particularly useful if you start an animation in a previous state and want to delay feedback until the completion of the animation.

Authors have the option to&#x20;

1. Enter a fixed duration (s)
2. Dynamic Duration: Link a Virtual Object's custom attribute (integer or float type) to control the wait time. Fixed duration is disabled when this option is active.

Parameters:

1. Entity Type: None (Fixed Duration), Virtual Object&#x20;
2. Entity: The Virtual Object you want to choose
3. Attribute: Custom attribute atached to the Virtual Object selected (must be a float or integer)
4. Duration: Direct time input (when using fixed duration)

<br>


---

# Agent Instructions: 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:

```
GET https://docs.siminsights.com/authoring-a-simulation/state-machine/actions/wait.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
