Instructions
Actions to control state machine execution
Last updated
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.
These instructions work with State Machine Runner components on specific GameObjects, affecting only that instance.
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.
These instructions work directly with State Machine Asset files, affecting all runners using that asset.
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
Asset Instructions affect all runners using that State Machine asset. Use with caution in multiplayer or when multiple instances exist.
Last updated
Actions Component:
โโ Instruction: Run State Machine Runner Node
โ โโ Target: Player (GameObject)
โ โโ Node: "CombatNode"
โโ Instruction: Enable State Machine Runner Node
โโ Target: Enemy (GameObject)
โโ Node: "AlertNode"