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

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