- Joined
- Jan 28, 2009
- Messages
- 442
I was wondering if MatchingUnit leaks? If I convert this trigger...
I was then wondering: should I call a function that destroys filterUnit after it has been used and AFTER "return True" has happened in the function?
I tried to destroy filterUnit just to see what would happen, but it seems that I don't know which function to call in order to remove a unit.
I know how to destroy a group, but not a single unit, so...
Questions:
1) Does MatchingUnit leak?
2) If so, how do I fix it? By destroying filterUnit... or how?
3) Even if I don't need it NOW, what do I call to destroy a single unit?
I hope that my doubts stand clear.
-
Events
-
Conditions
-
Condition - If UnitGroup((UnitsInUnitGroup(Mob)) matching condition(MatchingUnit)is Alive)Equal to True))is empty Equal to True
-
-
Actions
I was then wondering: should I call a function that destroys filterUnit after it has been used and AFTER "return True" has happened in the function?
I tried to destroy filterUnit just to see what would happen, but it seems that I don't know which function to call in order to remove a unit.
I know how to destroy a group, but not a single unit, so...
Questions:
1) Does MatchingUnit leak?
2) If so, how do I fix it? By destroying filterUnit... or how?
3) Even if I don't need it NOW, what do I call to destroy a single unit?
I hope that my doubts stand clear.
Last edited: