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

EVENT: A unit stops moveing?

Status
Not open for further replies.
Level 11
Joined
Mar 8, 2006
Messages
277
Man how can i put some actions from a trigger after a unit stops moving? Without to use a region or sort of it, the order with no target event doesnt work.

Soemthing like this

EVENT: A unit stops moving (u ordered a unit to move and then u want some action to take place after the unit stops

Actions:....
 
Level 15
Joined
Aug 31, 2009
Messages
776
You can use a periodic (yeah yeah, stress on system whatever) trigger that does
  • Set Tempgroup = (Units in (Playable Map Area) matching (Current Order of (Matching Unit) equal to Order(stop))
  • Unit Group - Pick every unit in Tempgroup and do (Actions)
    • Loop - Actions
      • Unit - Do stuff to (Picked Unit)
 
Status
Not open for further replies.
Top