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

How to make a unit move somwhere with no region?

Status
Not open for further replies.
Level 2
Joined
May 17, 2009
Messages
9
Plz help
How do you make it so that a unit like moves north, but doesnt go to a specific region
Im using it for a custom spell
 
Level 10
Joined
Oct 22, 2006
Messages
599
Something like this?

  • Move Unit
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
    • Actions
      • Set tmpPoint = ((Position of (Triggering unit)) offset by (100.00, 0.00))
      • Unit - Move (Triggering unit) instantly to tmpPoint
      • Custom script: call RemoveLocation(udg_tmpPoint)
This will move the unit up to the right by 100 points. Experiment with the numbers to have the desired effect. If you need it to go down/left use negative numbers.
 
Last edited:
Level 2
Joined
May 17, 2009
Messages
9
Hey im having a problem with north and south
I have the rest though
100,0 = East
100,100=North East
100,-100=South east
-100,0=West
-100,100=North west
-100,-100=South west

(Sorry for double post)
 
Status
Not open for further replies.
Top