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

rotate building

Status
Not open for further replies.
Level 5
Joined
May 23, 2008
Messages
148
Read this: Tower Turning Tutorial.
Do what it states is needed to be done and add a simple trigger:
  • TowerAngled
    • Events
      • Unit - A unit Finishes construction
    • Conditions
    • Actions
      • Set DesiredAngle = 315.00
      • Set TheTower = (Constructed structure)
      • Unit - Make TheTower face DesiredAngle over 0.00 seconds
      • Unit - Set TheTower movement speed to 0.00

First of all, i don't know whether will it work or not ^^ it's plainly theoretical. If it doeas not, you might try to change minimum unit speed constant to 0 and if it doesn't help add a wait between action making the tower obtain an angle and making it freeze (setting it's movement speed from 1.00 to 0.00).​
 
Level 11
Joined
Apr 6, 2008
Messages
760
Read this: Tower Turning Tutorial.
Do what it states is needed to be done and add a simple trigger:
  • TowerAngled
    • Events
      • Unit - A unit Finishes construction
    • Conditions
    • Actions
      • Set DesiredAngle = 315.00
      • Set TheTower = (Constructed structure)
      • Unit - Make TheTower face DesiredAngle over 0.00 seconds
      • Unit - Set TheTower movement speed to 0.00

First of all, i don't know whether will it work or not ^^ it's plainly theoretical. If it doeas not, you might try to change minimum unit speed constant to 0 and if it doesn't help add a wait between action making the tower obtain an angle and making it freeze (setting it's movement speed from 1.00 to 0.00).​


also u posted something that dont work... please be sure it works before u post...
 
Level 5
Joined
May 23, 2008
Messages
148
Already suggested by Martin :wink: and proven to work only for preset units.

Ciebron: yes, you are right, but on the other hand you can use triggers to keep towers returning to their angle after fight. Also note that the problem exists only for towers. Buildings without an attack (in this case you have to change allowed targets to none, because our roots ability is enabling attack 1) keep their angle all the time.

I agree that there is no perfect solution, but the root one surely has more applications (is more universal).
 
Status
Not open for further replies.
Top