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
FINISHEDevent.
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 running actions to finish.
Wait until any keyboard key is pressed.
Wait until a bool variable matches a target value.
Wait for an interval calculated from a rate per second.
Wait until a mouse button is pressed.
Pause execution until the next frame.
Wait for a randomized duration between configured bounds.
Wait for a fixed number of seconds.
Wait until a variable meets a specified condition.