playMaker

Author Topic: Subroutine?  (Read 1130 times)

TokyoDan

  • Playmaker Newbie
  • *
  • Posts: 9
    • View Profile
Subroutine?
« on: April 19, 2014, 05:46:20 AM »
Id there a way to make a subroutine that can be called from various FSMs and when that subroutine end, it returns to the next statement in the FSM from which it was called? And it cane be called from within various other FSMs?

Bjakuja

  • Junior Playmaker
  • **
  • Posts: 75
    • View Profile
Re: Subroutine?
« Reply #1 on: April 19, 2014, 07:47:47 AM »
You can use action GoToPreviousState and it will return to previous state on current FSM.
To call events from other FSMs you have to use global events and to use action SendEvent. Does this make sense? Can you be more specific about what you want to achieve?

Cheers!!!