- Joined
- Aug 27, 2008
- Messages
- 127
No matter if its real or game time, it just wont wait under .40 seconds.
I've used this trigger before a week lets say and it was working great. Now I have no idea why its not working.
Here it is:
Event: Unit - A unit Finishes casting an ability
Condition: (Ability being cast) Equal to Warp (Racial Passive)
Action: For each (Integer tmpPlayerInteger[(Player number of (Owner of (Triggering unit)))]) from 1 to 100, do (Actions)
Loop - Actions
Wait 0.01 seconds
Unit - Move (Triggering unit) instantly to ((Position of (Triggering unit)) offset by 5.00 towards (Facing of (Triggering unit)) degrees)
It waits like 0.40 seconds or so (that's how I feel it, but I am not sure). It moves the unit in the right direction but with a too big wait. Its like MOVE, WAIT A LOT, MOVE AGAIN, WAIT A LOT. The ability started from the Berserk template. Can someone help me? I've checked everything and I can't find the reason for this. Btw, this is happening in other triggers too but I think its only in loops (not sure about this one).
I could also do the triggers with a Time - Every 0.01 seconds of game time (which works), but that would be a lot of work.
P.S.: I am using UMSWE with no limits enabled. I tried with JassHelper disabled and it still does the same. And it looks like For Each Integer A doesn't work. Probably because of other triggers.
P.S.2: I tried fixing it by copying only this part many times:
Wait 0.01 seconds
Unit - Move (Triggering unit) instantly to ((Position of (Triggering unit)) offset by 5.00 towards (Facing of (Triggering unit)) degrees)
Still had the same long wait. 100x0.01 = 1 right? So it should take only 1 seconds. I just don't understand.
P.S.3: Maybe I could do it with a repeating timer.
I've used this trigger before a week lets say and it was working great. Now I have no idea why its not working.
Here it is:
Event: Unit - A unit Finishes casting an ability
Condition: (Ability being cast) Equal to Warp (Racial Passive)
Action: For each (Integer tmpPlayerInteger[(Player number of (Owner of (Triggering unit)))]) from 1 to 100, do (Actions)
Loop - Actions
Wait 0.01 seconds
Unit - Move (Triggering unit) instantly to ((Position of (Triggering unit)) offset by 5.00 towards (Facing of (Triggering unit)) degrees)
It waits like 0.40 seconds or so (that's how I feel it, but I am not sure). It moves the unit in the right direction but with a too big wait. Its like MOVE, WAIT A LOT, MOVE AGAIN, WAIT A LOT. The ability started from the Berserk template. Can someone help me? I've checked everything and I can't find the reason for this. Btw, this is happening in other triggers too but I think its only in loops (not sure about this one).
I could also do the triggers with a Time - Every 0.01 seconds of game time (which works), but that would be a lot of work.
P.S.: I am using UMSWE with no limits enabled. I tried with JassHelper disabled and it still does the same. And it looks like For Each Integer A doesn't work. Probably because of other triggers.
P.S.2: I tried fixing it by copying only this part many times:
Wait 0.01 seconds
Unit - Move (Triggering unit) instantly to ((Position of (Triggering unit)) offset by 5.00 towards (Facing of (Triggering unit)) degrees)
Still had the same long wait. 100x0.01 = 1 right? So it should take only 1 seconds. I just don't understand.
P.S.3: Maybe I could do it with a repeating timer.
Last edited: