- Home /
Interaction between multiple FSMs
hi, i have 3 Finite state machines running at the same time one handles moving (click to move / keyboard movement) one handles actions such as (jumping / flying / swimming ...) and one handles combat
in these machines some states can cancel some states in diffrent machines EX : moving cancels combat and combat cannels movement and somthing like movement and jumping cancel combat but jump and moving don't cancel each other
in the machine i have priority for each state if a state has equal or higher priority it will cancel the current state and run but if it has less it wont be activated
my question is how can i handle cross states canceling thing, i don't seem to find a good way to do it if i put a priority like system stuff like jump will start to cancel movement but i don't want that
i hope someone can help thx
Your answer
![](https://koobas.hobune.stream/wayback/20220613042156im_/https://answers.unity.com/themes/thub/images/avi.jpg)