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

[Trigger] rotate <selected> unit with mouse movement

Status
Not open for further replies.
It's not exactly what you wanted, and I made it only working good for Singeplayer but maybe you can work on it. Link




  • Init
    • Events
      • Map initialization
    • Bedingungen
    • Aktionen
      • Set Hero = Lord Garithos 0000 <gen>
      • Set Tollerance = 200.00


  • Check
    • Events
      • Time - Every 0.10 seconds of game time
    • Bedingungen
    • Actions
      • Set Point = (Position of Hero)
      • Set x = (X of Point)
      • Set y = (X of Point)
      • Set Cam_X = (Target X of current camera view)
      • Set Cam_Y = (Target Y of current camera view)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • Cam_X > (x + Tollerance)
                  • Cam_X < (x - Tollerance)
              • Or - Any (Conditions) are true
                • Conditions
                  • Cam_Y > (y + Tollerance)
                  • Cam_Y < (y - Tollerance)
        • 'THEN'-Actions
          • Unit - Order Hero to Move to (Point(Cam_X, Cam_Y))
        • 'ELSE'-Actions
      • Custom script: call RemoveLocation (udg_Point)

 
Status
Not open for further replies.
Top