• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Adjusting Building Facing

Level 13
Joined
Jul 16, 2012
Messages
679
229063-albums7387-picture88195.png
229063-albums7387-picture88196.png


The default facing of a building is 270°
This picture shows the default facing of a Blacksmith

229063-albums7219-picture84390.png




flag.gif
OVERVIEW
flag.gif
  • Easy way to adjust the facing of a building without using triggers :)

peonpower01.gif
STEPS
peonpower01.gif
  1. Open your Object Editor
  2. Find the building you want to adjust the facing for
  3. Now, after you've selected the building you want, find the field: Stats - Is a Building
  4. If you find it, change it to false.

Now, you can adjust the facing of the building however you'd like :)

If you're done, just change the field Stats - Is a Building to true and you're done :)



Idea.gif
ADDITIONAL INFORMATION
Idea.gif
  • If you remove the building, the shadows will not be removed
  • If you move the building, the facing of the building will reset to default
 
Last edited:
Level 12
Joined
Feb 22, 2010
Messages
1,115
I remember spinnaker showed a way to change building facing in-game, you should add it to this tutorial too.
 

Bannar

Code Reviewer
Level 26
Joined
Mar 19, 2008
Messages
3,140
I remember spinnaker showed a way to change building facing in-game, you should add it to this tutorial too.
He wanted to show a solution without using triggers.

However, yes - you can change building's facing and whatmore, with this add a "unit" behaviour when attacking -> tower facing/rotating when its target is moving.
Trick involves using SetUnitPosition native with differend face parameter. The coords need to be exact of given unit's x/y to prevent any complications.
 
Level 12
Joined
May 22, 2015
Messages
1,051
Also note that the building will snap back to default angle if you move it after it is a building again (might also do so if you view properties).
 
Top