| 01-28-2007, 10:39 AM | #2 |
It leaks unit groups, I think. "(Units in NeutralRed1 <gen> owned by Neutral Hostile)" Is a unit group which you have to destroy, afaik. |
| 01-28-2007, 01:27 PM | #3 |
Correct, it leaks 4 groups. |
| 01-28-2007, 02:14 PM | #4 |
Trigger: Actions
![]() Set TempGroup = (Units in Creep Region 00h <gen> owned by Neutral Hostile)
![]() --- If TempGroup is empty, etc... ---
![]() Custom script: call DestroyGroup(udg_TempGroup)--- Now, I'd like to do some advertisment. :P The backside with your function is that the creeps can leave the region, for instance when they are chasing player units. IF the trigger runs when they have run away, a new set of units will spawn, despite the fact that the old ones weren't dead. I've created a system which automatically handles most stuff for you. It's called the Creep Respawn System. |
| 01-28-2007, 04:41 PM | #5 |
Yea after I put up this thread...I transfered over to a system that actually works amazingly well, and its tiny..only 25 lines of total code or so, and it works on every single neutral hostile creep in the map.. Thanks for the assistance though. |
