- Joined
- Jul 27, 2012
- Messages
- 33
1) just wondering how to create mui custom value with wait? so if unit attacking, then wait 2 second and create special effect at unit, like..
2) and i want to know if i only remove unit in group/clear group without custom script (call DestroyGroup) its leak?
2) and i want to know if i only remove unit in group/clear group without custom script (call DestroyGroup) its leak?
-
Untitled Trigger 001
-

Events
-


Unit - A unit Is attacked
-
-

Conditions
-

Actions
-


If (temp Less than 1000) then do (Set temp = (temp + 1)) else do (Set temp = 0)
-


Set UnitAttacking[temp] = (Attacking unit)
-


Unit - Set the custom value of UnitAttacking[temp] to temp
-


Unit Group - Add UnitAttacking[temp] to Group1
-


Wait 2.00 seconds
-


Unit Group - Pick every unit in Group1 and do (Actions)
-



Loop - Actions
-




Set Unit_CV = (Custom value of (Picked unit))
-




Special Effect - Create a special effect at (Position of UnitAttacking[Unit_CV]) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
-




Special Effect - Destroy (Last created special effect)
-




Unit Group - Remove all units from Group1
-
-
-
-


