- Joined
- Sep 28, 2004
- Messages
- 365
Can anyone point me out a good example of using unit group in hashtable?
I am trying to make a spell where the archer shoots 3 arrows at a point 1 after another. I move the arrow with triggers. And units in range of the arrow will get damage. But i only want them to get damage once since the move trigger is every 0.03seconds.
So i created a damagedGroup. Units in this group won't be damage anymore for that particular arrow.
Example:
If unit A stands in line. Caster shoots arrow, unit A will get hit 3 times because of the 3 arrows. Not more than that.
But i have problem using unit group in hashtable. I can't destroy it, if not my group will be empty. If i don't it will leak. ._. Anyone can shed some light?
Thanks in advance!
I am trying to make a spell where the archer shoots 3 arrows at a point 1 after another. I move the arrow with triggers. And units in range of the arrow will get damage. But i only want them to get damage once since the move trigger is every 0.03seconds.
So i created a damagedGroup. Units in this group won't be damage anymore for that particular arrow.
Example:
If unit A stands in line. Caster shoots arrow, unit A will get hit 3 times because of the 3 arrows. Not more than that.
But i have problem using unit group in hashtable. I can't destroy it, if not my group will be empty. If i don't it will leak. ._. Anyone can shed some light?
Thanks in advance!