Event-based Hierarchical State Machine (HSM).
Event-based Hierarchical State Machine (HSM) that manages [LimboState] instances and facilitates transitions between them. LimboHSM is a [LimboState] in itself and can also serve as a child of another LimboHSM node.
Establishes a transition from one state to another when [param p_event] is dispatched. Both [param p_from_state] and [param p_to_state] must be immediate children of this state.
Returns the currently active substate.
Returns the currently active leaf state within the state machine.
Initiates the state and calls [method LimboState._setup] for both itself and all substates.
When set to [code]true[/code], switches the state to [member initial_state] and activates state processing according to [member update_mode].
Calls [method LimboState._update] on itself and the active substate, with the call cascading down to the leaf state. This method is automatically triggered if [member update_mode] is not set to [constant MANUAL].
Useful for defining a transition from any state.
The substate that becomes active when the state machine is activated using the [method set_active] method. If not explicitly set, the first child of the LimboHSM will be considered the initial state.
Specifies when the state machine should be updated. See [enum UpdateMode].
Emitted when the currently active substate is switched to a different substate.
Update the state machine during the idle process.
Update the state machine during the physics process.
Manually update the state machine by calling [method update] from a script.