Skip to content

Latest commit

 

History

History
81 lines (67 loc) · 2.99 KB

README.md

File metadata and controls

81 lines (67 loc) · 2.99 KB


FSM

A Finite State Machine (FSM) Behavior, Used to control the flow of logic for objects

Version 4.0.0.1


See all releases


Author: piranha305
Made using CAW

Table of Contents


Usage

To build the addon, run the following commands:

npm i
npm run build

To run the dev server, run

npm i
npm run dev

Examples Files

Images Description Download
fsm_examples

Properties

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

Actions

Action Description Params
Go to state Transition to a specific state State (string)
Set enabled Enable or disable the FSM Enabled (boolean)

Conditions

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)

Expressions

Expression Description Return Type Params
CurrentState Get the current state string
PreviousState Get the previous state string