• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Change unit facing?

Status
Not open for further replies.
Level 3
Joined
Jun 7, 2010
Messages
33
  • Unit - Create 1 Frigate (Fleet Frigate) for (Owner of (Triggering unit)) at temploc facing Default building facing degrees
Hi, how do I change unit facing to the center of a region?
Replace "default building facing degrees" with center of X? (or variable temploccation if that leaks and then call remove it)
 
Level 9
Joined
Oct 11, 2009
Messages
477
  • Facing angle
    • Events
      • //Your events
    • Conditions
      • //Your conditions
    • Actions
      • Set Point = Center of (Your region)
      • Unit - Create 1 Frigate (Fleet Frigate) for (Owner of (Triggering unit)) at temploc facing Angle between temploc and Point
      • Custom script: call RemoveLocation(udg_Point)
As you see I created a new point variable, this is done to prevent leaks.
 
Status
Not open for further replies.
Top