- Home /
 
 
               Question by 
               AtomicMarine · May 25, 2014 at 12:39 PM · 
                functionordering  
              
 
              How can I have one script wait for a whole bunch of scripts to finish running a function?
Hey guys,
So the problem is as follows, one of my scripts has a function which needs to execute after like 100 other objects finish running a particular function. How can I have this main script execute once the last function of the 100 objects finishes running??
               Comment
              
 
               
              How would I implement this? I have tried static bools, the problem is that the amount of objects which the script needs to wait for is varied and if I make the bool true at different times im back with the same issue I started with :/
Every time you load all it, it loads in the same order? You can try to order it and then call in the last object you charged a function that makes this static bool true..
Your answer