• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

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