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

Flying unit morph

Status
Not open for further replies.
Level 6
Joined
Mar 2, 2013
Messages
127
I have an ability than morphs a melee unit to flying, 45 seconds later he turns back to original form. My problem is that if the flying unit is over some trees or a place where u can't stand, hes model stays the same. How would I make him move to a safe location so he can morph, or is there another way of doing this.
 
One thing you could try is: Create a dummy unit (a ground unit), use the "Unit - Move Unit (Instantly)". Store his new location in a variable, remove the dummy unit afterward, and move the morphed unit there.

Basically, "Unit - Move Unit (Instantly)" does a bunch of internal calculations to find the nearest pathable point. This is probably the best way to go about it since you'll be doing it the way Warcraft 3 wants you to. :p
 
Status
Not open for further replies.
Top