Instructions

Actions to control state machine execution

Instructions are actions you can use in Game Creator 2 Actions, Hotspots, or any other visual scripting context to control state machines.

Runner Instructions

These instructions work with State Machine Runner components on specific GameObjects, affecting only that instance.

Instruction
Description

Executes a specific node on a target runner

Executes a node and passes variable values before execution

Re-enables a previously disabled node

Disables a node, preventing it from executing

Immediately stops a currently running node

Iterates through a list and executes a node for each element

Runner Instructions affect only the specific runner instance on the target GameObject. Use these for per-instance control.

Asset Instructions

These instructions work directly with State Machine Asset files, affecting all runners using that asset.

Instruction
Description

Executes a node directly on a State Machine asset

Enables a node in the State Machine asset

Disables a node in the State Machine asset

Stops a running node in the State Machine asset

Usage Example

Last updated

Was this helpful?