• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

How to make a building float

Level 8
Joined
Apr 16, 2025
Messages
160
I’ll start by saying that there is this thread:
Tower Turning Tutorial
and formally it already answers the question of how to increase a building’s height. But there is one BUT. The Root ability forces the building to rotate. And even if you disable that checkbox, the building still gets constructed while being slightly rotated to the side.


So I just want to point out that it is actually possible to change a building’s height — but only at the moment it appears on the map. The event “Unit enters playable map area” is perfect for this. Then you use the following call:



call SetUnitFlyHeight(GetTriggerUnit(), 50.00, 0.00)


However, there are two conditions:


  1. The building must have the movement type set to Floating or Flying.
  2. uept and uerd must be set to 0 (Pathing – Pathing Radius and Pathing – Pathing Maps).

Trying to change the height later will not work.


P.S. There is one more way to allow a building to rotate: give it the ability to move, and when it appears on the map, cast Ensnare on it or give it a rune with that ability.
 
This is one of those 'handy tricks' which I feel does not qualify as a tutorial.
Admittedly this is very iffy and subjective and has not been 'consistently' enforced anyway, go figure when you have 20 years of history.

Regardless I think a demo/test map would be handy here or a screenshot.

Code should use correct tags also.

Perhaps least importantly I think it can be structured slightly better
 
This is one of those 'handy tricks' which I feel does not qualify as a tutorial.
Admittedly this is very iffy and subjective and has not been 'consistently' enforced anyway, go figure when you have 20 years of history.

Regardless I think a demo/test map would be handy here or a screenshot.

Code should use correct tags also.

Perhaps least importantly I think it can be structured slightly better
I don't claim to be a tutorial. I just spent a lot of time digging into this topic and came up with my own solution, one I haven't seen anywhere before.If you think I should add three screenshots, I can, but I just don't see the point yet. I think I've made everything clear.
 
Back
Top