Ew! Look how much stuff it calls compared to CreateUnit! :thup:
I fail to see how you could hit op limit, considering none of my functions cycle through all the units. Each function call is O(1) complexity. :thup:I suggest your hardcap the number of units you can index for safety purposes. If you have to cycle through over 8,000 units you will reach the limit operation given your functions.