• 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.

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

Status
Not open for further replies.
Level 28
Joined
Mar 25, 2008
Messages
2,955
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?
 
Level 3
Joined
Jun 25, 2008
Messages
65
Hmm... Dont see a mistake in that.
Maybe store the Target of the Spell in a variable and make the "check" to 0.05 or so...
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
(Position of (Target unit of ability being cast)) after the wait seems to be the problem.
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
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.
 
Level 23
Joined
Nov 29, 2006
Messages
2,482
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.
Top