image.png

FSM is responsible for high-level states and state transitions.

In Flow Core, this role is primarily handled by FsmState. A state can be implemented either in Instruction mode, where its Enter / Update / Exit logic is written directly, or in Graph mode, where a subgraph is attached to define its behavior. FSM is well suited for representing states that persist over time, such as Idle, Patrol, Combat, or Dead, and for evaluating transition conditions at fixed intervals to determine when to switch to another state. It is not a regular Flow node, but a stateful runtime node with built-in semantics for activation, cancellation, and reactivation.