• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! 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