- Joined
- May 11, 2012
- Messages
- 2,108
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
-
-