- Joined
- Sep 5, 2019
- Messages
- 33
There has got to be an easier way. I want to remove units from their unit group when they die, and set a number variable to one less (keeping track of how many are in the group, because a condition in another trigger cant take unit groups).
I am spawning creeps in 30 places across the map, and am using a single unit group array. (The actual spawning is in a different trigger, its working smoothly). I want to respawn the creep group once that creep group is all killed, and I cant find an easier way to check if a creep in [respective] unit group has died. Checking every time any creep dies, and running through this loop every single time just to remove a single unit from only one of the thirty groups seems horribly inefficient.
CreepRemoveIndexNum1 - Index number for the Unit Group array, and Real Number array counting units in said unit group
CreepNumberUnitG1 - Unit Group array for each creep group, its filled as the creeps are spawned
CreepNumberReal1 - Real Number array keeping track of alive units in unit group
Thank you for the help!
I am spawning creeps in 30 places across the map, and am using a single unit group array. (The actual spawning is in a different trigger, its working smoothly). I want to respawn the creep group once that creep group is all killed, and I cant find an easier way to check if a creep in [respective] unit group has died. Checking every time any creep dies, and running through this loop every single time just to remove a single unit from only one of the thirty groups seems horribly inefficient.
CreepRemoveIndexNum1 - Index number for the Unit Group array, and Real Number array counting units in said unit group
CreepNumberUnitG1 - Unit Group array for each creep group, its filled as the creeps are spawned
CreepNumberReal1 - Real Number array keeping track of alive units in unit group
Thank you for the help!