Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: TokyoDan on April 19, 2014, 05:46:20 AM

Title: Subroutine?
Post by: TokyoDan 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?
Title: Re: Subroutine?
Post by: Bjakuja 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!!!