A Finite State Machine (FSM) Behavior, Used to control the flow of logic for objects
Author: piranha305
Made using CAW
To build the addon, run the following commands:
npm i
npm run build
To run the dev server, run
npm i
npm run dev
Images | Description | Download |
---|---|---|
fsm_examples |
Property Name | Description | Type |
---|---|---|
Enabled | Enable or disable the FSM | check |
Initial State | The initial state of the FSM | text |
Trigger Initial State | Trigger the initial OnStateEnter event | check |
Action | Description | Params |
---|---|---|
Go to state | Transition to a specific state | State (string) |
Set enabled | Enable or disable the FSM | Enabled (boolean) |
Condition | Description | Params |
---|---|---|
Current state in list | Check if the current state is in a list of states | States (string) |
Current state is | Check if the current state is a specific state | State (string) |
Is enabled | Check if the FSM is enabled | |
On any state change | Triggered when state changes | |
On state enter | Triggered when entering a specific state | State (string) |
On state enter in list | Triggered when entering a state in a list of states | States (string) |
On state exit | Triggered when exiting a specific state | State (string) |
On state exit in list | Triggered when exiting a state in a list of states | States (string) |
On state transition | Triggered when transitioning from one state to another | From (string) To (string) |
Previous state in list | Check if the previous state is in a list of states | States (string) |
Previous state is | Check if the previous state was a specific state | State (string) |
Expression | Description | Return Type | Params |
---|---|---|---|
CurrentState | Get the current state | string | |
PreviousState | Get the previous state | string |