Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Adam Z on October 11, 2017, 05:15:10 PM

Title: Possible to start transition from another FSM? [SOLVED]
Post by: Adam Z on October 11, 2017, 05:15:10 PM
I have UI buttons that have a "Play Maker U Gui Component Proxy" attached. I also have an FSM on that button which gets triggered with ON CLICK.

I also have a Game Object with has an FSM on it to Enable and Disable my GUI panels.  Those are enabled/disabled within the different states. As an example; the FSM starts on the Main Menu state. When the "To Single Player" event occurs, it transitions to the Single Player state.

What I'm trying to do is have the button FSM tell the Game Object FSM to transition to a different state, using an Event?  Is that possible? 

Thanks.
Title: Re: Possible to start transition from another FSM?
Post by: jeanfabre on October 12, 2017, 02:41:37 AM
Hi,

 yes, you use send event and target that fsm you want to transit, the transition must be a global event however.

 bye,

 Jean
Title: Re: Possible to start transition from another FSM?
Post by: Adam Z on October 12, 2017, 05:21:33 PM
Perfect, thanks.