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

Status
Not open for further replies.
Level 18
Joined
May 11, 2012
Messages
2,103
How to make trigger waits 0.10 seconds before doing next loop without this wait?

  • For each (Integer A) from 1 to 6, do (Actions)
    • Loop - Actions
      • Set TrigUnitLoc = (Position of TrigUnit)
      • Set TempPoint = (TrigUnitLoc offset by 200.00 towards (14.00 + (72.00 x (Real((Integer A))))) degrees)
      • Special Effect - Create a special effect at TempPoint using war3mapImported\HolyAwakening.mdx
      • Special Effect - Destroy (Last created special effect)
      • Set TempUnitGroup = (Units within 200.00 of TempPoint)
      • Unit Group - Pick every unit in TempUnitGroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is A structure) Equal to False
              • ((Picked unit) is dead) Equal to False
              • ((Picked unit) belongs to an enemy of (Owner of TrigUnit)) Equal to True
            • Then - Actions
              • Unit - Cause TrigUnit to damage (Picked unit), dealing Damage[Damage_Integer] damage of attack type Spells and damage type Normal
            • Else - Actions
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Custom script: call DestroyGroup(udg_TempUnitGroup)
      • Custom script: call RemoveLocation(udg_TrigUnitLoc)
      • Wait 0.10 seconds
 
Status
Not open for further replies.
Top