Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Mupp on June 20, 2018, 10:49:45 AM

Title: Make a FSM run another FSM
Post by: Mupp on June 20, 2018, 10:49:45 AM
I want a FSM to start and run an other FSM, but if that FSM is already running I want nothing to happen.
How can I do this?
Title: Re: Make a FSM run another FSM
Post by: verybinary on June 20, 2018, 03:39:08 PM
check if the fsm is active
true - send to empty state
false - activate chosen FSM
Title: Re: Make a FSM run another FSM
Post by: Mupp on June 20, 2018, 04:27:48 PM
Thanks, but there is no such action by default. Found one on Eco though.

Will an already active FSM reset or do something bad if you activate it?
Title: Re: Make a FSM run another FSM
Post by: verybinary on June 20, 2018, 04:33:11 PM
it shouldn't. if its already activated, and inside a state, activating the object that holds the fsm shouldn't affect anything, but I haven't tried it.
but you can. half the fun of playmaker is trying stuff just to see if it breaks.
back up and give it a shot
Title: Re: Make a FSM run another FSM
Post by: Mupp on June 20, 2018, 05:05:22 PM
Right, thanks.