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

How can i make this MUI?

Status
Not open for further replies.
Level 17
Joined
Jun 2, 2009
Messages
1,140
  • DevilCreeptenKac
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacked unit) is in zUG_DevilHerolarAI) Equal to True
      • ((Attacking unit) is in zCreepsReaper) Equal to True
      • aiKaciyor[(Player number of (Owner of (Attacked unit)))] Equal to False
      • ((Attacked unit) is in zUG_RegenDevil) Equal to False
      • ((Attacked unit) is in CHANNEL) Equal to False
    • Actions
      • Set aiKaciyor[(Player number of (Owner of (Attacked unit)))] = True
      • Set TempPoint = ((Position of (Attacked unit)) offset by 250.00 towards ((Angle from (Position of (Attacking unit)) to (Center of PreviousTarget[(Player number of (Owner of (Attacked unit)))])) - 0.00) degrees)
      • Unit - Order (Attacked unit) to Move To TempPoint
      • Custom script: call RemoveLocation (udg_TempPoint)
      • Wait 1.00 seconds
      • Set aiKaciyor[(Player number of (Owner of (Attacked unit)))] = False
      • Set TempGroup = (Units within 800.00 of (Position of (Attacked unit)) matching (((Matching unit) is in zCreepsDevil) Equal to True))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in TempGroup) Greater than or equal to 1
            • Then - Actions
              • Unit - Order aiHero[(Player number of (Owner of (Attacked unit)))] to Attack-Move To (Center of NextTarget[(Player number of (Owner of (Attacked unit)))])
            • Else - Actions
      • Custom script: call DestroyGroup (udg_TempGroup)
When enemy unit attacks one of computer controlled heroes, they have to fall back for 1 second.
 
Status
Not open for further replies.
Top