Skip to content

Sequence

Sequence actions are blocking actions that help you run steps in a specific order - one after the other.

For example, the Wait For Seconds action pauses the action list for a set amount of time, then allows the next action to run.

Sequence actions are especially useful when:

  • You want to delay the next action.
  • You want to build a timed sequence without adding extra states.
  • You want a state to wait before sending the FINISHED event.

Controlling When a State Finishes

Use a sequence action as the last action in the list to control when the state ends.
For example, placing a Wait For Seconds action, set to 5 seconds, at the end of the list allows the state to run all its actions for 5 seconds before sending FINISHED.

Sequence Actions

Wait For All Finished

Wait for all running actions to finish.

Wait For Any Key Down

Wait until any keyboard key is pressed.

Wait For Bool Value

Wait until a bool variable matches a target value.

Wait For Interval From Rate

Wait for an interval calculated from a rate per second.

Wait For Mouse Button Down

Wait until a mouse button is pressed.

Wait For Next Frame

Pause execution until the next frame.

Wait For Random Time

Wait for a randomized duration between configured bounds.

Wait For Seconds

Wait for a fixed number of seconds.

Wait For Variable Value

Wait until a variable meets a specified condition.