playMaker

Author Topic: Possible to start transition from another FSM? [SOLVED]  (Read 2002 times)

Adam Z

  • Full Member
  • ***
  • Posts: 207
Possible to start transition from another FSM? [SOLVED]
« 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.
« Last Edit: October 12, 2017, 05:21:45 PM by Adam Z »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Possible to start transition from another FSM?
« Reply #1 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

Adam Z

  • Full Member
  • ***
  • Posts: 207
Re: Possible to start transition from another FSM?
« Reply #2 on: October 12, 2017, 05:21:33 PM »
Perfect, thanks.