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!
For real flying use a morph ability like used by the druid of the talon. This can change a unit from a land unit type into a flying unit type.
Triggers can just pull the unit across un-pathable terrain by turning off its collision and moving it every frame. Use the flying trick (add and remove crow form) to allow you to set apparent flying height with triggers.
Flying height has nothing to do with flying movement. You can make a land unit appear to be high in the air but it will still be stuck moving on land pathable areas.
If the unit is an air unit, simply change flying height using the appropriate native.
If the unit is a ground unit then you need to add and remove the crow/raven form ability. You can then change the flying height.
The native to set flying height...
JASS:
native SetUnitFlyHeight takes unit whichUnit,real newHeight,real rate returns nothing
There is also a GUI action wrapper for it. I forget if it is under unit or art however.
As mentioned, ground unit can't just change height readily with the above trigger action. You'll need to add Storm Crow Form to the ground unit and remove it. Then you can change the fly height.
Example:
Code:
Unit - Add Storm Crow Form to YourUnit
Unit - Remove Storm Crow Form from YourUnit
Animation - Change YourUnit fly height to 600 at rate 0
I am sorry there has been a slight misunderstanding.
Ground units cannot have flying heights by default (always flying height of 0). Trying to change their flying height using triggers does nothing for this reason.
However, if you add and remove crow/raven form (whatever) it sets some internal unit property that turns on flying height allowing you the alter the flying height of the unit. This is likely done as part of the ability to allow the smooth land->air transition. Due to a bug the flag is not removed with the ability. As such this is an exploit that allows you to give ground units flying height. As far as atomic state goes to the user, he will never have the ability as it is removed the instant it is added. A unit only needs to have the ability added and removed once during its life, not each time you want to change height.
People refer to this as the "Flying Trick".
I can't find the GUI change height. Can someone tell me where exactly is?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.