Contants keep changing in random order every second. How to stop constants from changing?



  • My creeps are going everywhere if i do source[0]. They don't go to the right source because the constant keeps changing in random order. 

    Is there somthing i can do in de server config?

    PLZ help!



  • You're better off target-locking the source by sticking the id in the creep's memory, and use Game.getObjectById() to retrieve it on the next tick.