HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Flying Units

07-07-2006, 12:03 PM#1
StockBreak
Well, how can I make any field unit temporary fly (just the time of an animation)? It seems that the function
Collapse JASS:
native SetUnitFlyHeight takes unit whichUnit, real newHeight, real rate returns nothing
doesn't work, it simply doesn nothing... Moreover, what does the "rate" mean? Thanks.
07-07-2006, 12:09 PM#2
Pheonix-IV
You need to add and then instantly remove the Crow Form ability that Medivh has, then use that function and you can change the units fly height.

Note: This does not actually make it fly, it just allows you to change it's height.
07-07-2006, 12:19 PM#3
StockBreak
Quote:
Originally Posted by Pheonix-IV
You need to add and then instantly remove the Crow Form ability that Medivh has, then use that function and you can change the units fly height.

Note: This does not actually make it fly, it just allows you to change it's height.
Thank you very much. Yes, actually I just want to set its heigh to a new value. Just some other questions:
  • What does Crow Form actually do?
  • Does this ability affect a unit's classification (flying)?
  • Should I add + remove + set new height or add + set new height + remove?
Thanks.
07-07-2006, 12:41 PM#4
Blade.dk
The ability is a morph ability, that morph's Medivh into a crow.

Originally the SetUnitFlyHeight function does not do anything when used on ground units, but if the unit is or has been able to morph into a flying unit, it will allow it - So that is actually what the ability is used for here, instantly adding and removing it makes you able to use the SetUnitFlyHeight native on all units you want.

It doesn't affect the unit classification.

Just add/remove/set height.
07-07-2006, 03:04 PM#5
King Klear
Quote:
Originally Posted by StockBreak
Moreover, what does the "rate" mean? Thanks.

Rate determines speed at which the height change occurs.