• 🏆 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!

[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