Event-based Hierarchical State Machine (HSM). Event-based Hierarchical State Machine (HSM). Manages [LimboState] instances and transitions between them. LimboHSM is a [LimboState] itself, and can be a child of another LimboHSM instance. Adds a transition from one state to another when [code]p_event[/code] is dispatched. Returns active state. Returns the leaf state that is currently active in HSM. Initializes state and calls [code]_setup[/code] for itself and every substate. If [code]true[/code], changes state to [member initial_state] and enables state processing depending on [member update_mode]. Calls [method LimboState._update] on itself and on the active substate. Call propagates down to the leaf state. It is called automatically, if [member update_mode] is not set to [constant MANUAL]. Useful to define a transition from any state. A state that becomes active when state machine is activated by [method set_active] method. Determines when state machine is updated. See [enum UpdateMode]. Emitted when state is changed. Update state machine during idle process. Update state machine during physics process. Update state machine manually by calling [method update] from a script.