- Joined
- Feb 25, 2009
- Messages
- 2,004
Okay, so here's the deal:
I got a spell which moves a unit forward to a specific point until reaching it.
My problem is that I need to check the distance everytime I move the unit, but, when doing so I somehow bug the whole loop, ruining all instances.
The problem comes when I check the distance like this:
When I do check it in this way:
-- The whole problem is, when I do check the distance in the first way, if theres an 2 running instances of the spell, when the second one ends, it also stops the 1st one, leaving the unit invulnerable and invisible (Which shouldn't happen). So my questions is, why is this happening even tho they are 2 separated instances and why the last one overrites the previous one?
Both triggers can be seen here.
I got a spell which moves a unit forward to a specific point until reaching it.
My problem is that I need to check the distance everytime I move the unit, but, when doing so I somehow bug the whole loop, ruining all instances.
The problem comes when I check the distance like this:
-
Set Distance[MUI_3] = (Distance[MUI_3] + Speed[MUI_3])
When I do check it in this way:
-
Set Distance[MUI_3] = (Distance between mPoint[MUI_3] and cPoint[MUI_3])
-- The whole problem is, when I do check the distance in the first way, if theres an 2 running instances of the spell, when the second one ends, it also stops the 1st one, leaving the unit invulnerable and invisible (Which shouldn't happen). So my questions is, why is this happening even tho they are 2 separated instances and why the last one overrites the previous one?
Both triggers can be seen here.