I have states with multiple (let's say 10) actions (most of them are move to position actions). I want to transition to the next state when all the actions have finished, i.e. when all the objects have reached their destination. I can think of two cumbersome ways to do this:
1) Make 10 identical states, and have each action send the same NEXT event on end. Then have the 11th state be the actual state I want to transition to when all are completed.
2) Find out which action will take the longest, and only transition when it is done.
1) seems ridiculously cumbersome, and especially because I have many states where I do this kind of thing, so my FSM will be filled with identical states.
2) Seems impossible and also cumbersome, because in a dynamic environment it would be hard to know which action would end earliest.
Is there an easy way to do this in Playmaker, or will I just have to write my own script?