Playmaker Forum
PlayMaker News => General Discussion => Topic started by: faezeh on November 14, 2018, 09:27:42 AM
-
Is it possible to have several active FSMs at runtime? if yes, how it can be implemented?
-
Hi.
Yes and you should actually use many FMSs instead of 1 big fsm.
To add a fsm to an object that already has a fsm, you can use the 'Add Component' on the inspector.
Or (more easy)
In the Playmaker Editor screen, on the top left (next to "Lock") click on the fsm tab and there you can create a new fsm (which will automatically be added to the gameobject inspector.
To communicate between FSMs you can use the "Get/Set Fsm" Actions
as well as send event globals or send event by name.
Avoid using Globals for data
-
Thanks for your answer, but I mean is it possible two different States from two different FSMs be active at the same time in a parallel manner?
-
Hi,
yes, fsm operate in parallel like regular components.
Bye,
Jean