Conditions

Check state machine node states

Conditions check state machine states and can be used in Branch nodes, Conditions nodes, or any Game Creator 2 Condition context.

Runner Conditions

Check states on specific State Machine Runner instances.

Condition
Description

Returns true if a node is executing on the target runner

Returns true if a node is enabled on the target runner

Asset Conditions

Check states on State Machine Assets directly, affecting all runners using that asset.

Condition
Description

Returns true if a node is running on the asset

Returns true if a node is enabled on the asset

Usage Example

Branch Node:
โ”œโ”€ Condition: "State Machine Runner Node Is Running"
โ”‚   โ”œโ”€ Target: Self
โ”‚   โ””โ”€ Node: "PatrolNode"
โ”œโ”€ True โ†’ Actions: Start Alert Behavior
โ””โ”€ False โ†’ Actions: Continue Current State

Use Runner conditions for per-instance checks (e.g., "is this specific enemy patrolling?"). Use Asset conditions for global checks (e.g., "is the game paused?").

Last updated

Was this helpful?