Hello everyone. I have a problem with my own Tower defense map.
I have a simple trigger when player buys a unit from shop, the units gets teleported to "unit queue region" from which I want the units to be summoned by 2 periodicaly in like 0.5s interval.
For instance - Player 1 buys like 20 units, they all go into queue and each 0.5s only 2 random units are summoned to go somewhere until the queue is empty.
I have tried adding each bought unit to UnitTypeArray and then using FOREACH summoning the units in interval but with players buying like 1000+ units in 1 game, this array will be brutally big and might cause problems, doesnt it?
Thanks for any help. BTW. I am a bit newbie and don't know a lot about JASS.
I have a simple trigger when player buys a unit from shop, the units gets teleported to "unit queue region" from which I want the units to be summoned by 2 periodicaly in like 0.5s interval.
For instance - Player 1 buys like 20 units, they all go into queue and each 0.5s only 2 random units are summoned to go somewhere until the queue is empty.
I have tried adding each bought unit to UnitTypeArray and then using FOREACH summoning the units in interval but with players buying like 1000+ units in 1 game, this array will be brutally big and might cause problems, doesnt it?
Thanks for any help. BTW. I am a bit newbie and don't know a lot about JASS.