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

question about turning units arround

Status
Not open for further replies.
Level 5
Joined
Nov 30, 2012
Messages
200
You can't choose which angle you want it to face during placement. You can, however, change the direction of ALL buildings under Gameplay Constants > Building Facing Angle (degrees) > 270.00. It's the sixth option down from the top. Someone should provide extra information about this; it may be able to done with triggers. However, I have had no such success with that.
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
Use this function when a building enters playable map area:
JASS:
function SetImmovableUnitFacing takes unit u, real a returns nothing
    call SetUnitPosition(u, GetUnitX(u), GetUnitY(u))
    call SetUnitFacing(u, a)
endfunction

EDIT: It doesn't seem to work, propably due to the animation. But this works:
  • Untitled Trigger 077 Copy Copy
    • Events
      • Unit - A unit Finishes construction
    • Conditions
    • Actions
      • Set u = (Constructed structure)
      • Custom script: call SetUnitPosition(udg_u, GetUnitX(udg_u), GetUnitY(udg_u))
      • Custom script: call SetUnitFacing(udg_u, 135)
 
Status
Not open for further replies.
Top