Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: wheretheidivides on May 25, 2014, 04:15:25 PM

Title: Can you tell playmaker which FSM gets run first?
Post by: wheretheidivides on May 25, 2014, 04:15:25 PM
So let's say I have 2 managers (audio and video).  They get run at the same time, but oviously the computer picks 1 to start first.  So the events in 1 will happen first.  Is there a way playmaker can mark one to run first?  That way I could have the audio manager run first before the video manager.
Title: Re: Can you tell playmaker which FSM gets run first?
Post by: redikann on May 25, 2014, 04:41:13 PM
yes one could have a start state that does absolutely nothing and could be sent to it's next state by an FSM on another object. Using a Custom Global Event is one way to do this.
Title: Re: Can you tell playmaker which FSM gets run first?
Post by: Alex Chouls on May 26, 2014, 12:58:18 AM
This is good advice. Unity does not make any guarantees about the order in which components are called, so if you need to guarantee an order it's good to chain the FSMs the way redikann describes.