• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Wait until condition - doesn't work -.-

Status
Not open for further replies.
Level 28
Joined
Mar 25, 2008
Messages
2,954
hai thar
i got this action
  • Set temppoint1 = (Position of (Triggering unit))
  • Set temppoint2 = (Position of (Target unit of ability being cast))
  • Unit - Create 1 Fireball for (Owner of (Triggering unit)) at temppoint1 facing temppoint2
  • Set dummy = (Last created unit)
  • Unit - Order dummy to Bewegen nach temppoint2
  • Wait until ((Distance between (Position of dummy) and (Position of (Target unit of ability being cast))) Less or equal than 100.00), checking every 0.33 seconds
but somehow, the "wait" never expires -.-
can somebody help me?
 
(Position of (Target unit of ability being cast)) after the wait seems to be the problem.
 
Why not just store the target of the ability to a variable and than check the distance between the position of the dummy and the position of ...(the variable where you stored the targeted unit). That will leak(a lot), but without jass doing a conditional wait is just bad.
 
Well that is the thing. Target unit of ability being will not be triggered anymore after a wait, no matter if it's mpi or mui or you name it. So thats why you should add the unit in a variable at the beginning, and then use that variable instead of Target unit of ability being cast
 
Status
Not open for further replies.
Back
Top