Hey guys, i made a trigger for my spell that creates many units at the targeted point.. Now i want when something happens to remove them. When i use Unit - Remove Mist_of_Dust_Units[3,4 or 5] it obviously removes only 1 unit. And i don't know how to remove them all... Help me plz, +rep. Here is the trigger:
-
For each (Integer A) from 1 to 10, do (Actions)
-
Loop - Actions
- Unit - Create 1 Dust Effect1 for (Owner of Mist_Of_Dust_Units[1]) at Mist_Of_Dust_Point facing Default building facing degrees
- Set Mist_Of_Dust_Units[3] = (Last created unit)
- Unit - Create 1 Dust Effect2 for (Owner of Mist_Of_Dust_Units[1]) at Mist_Of_Dust_Point facing Default building facing degrees
- Set Mist_Of_Dust_Units[4] = (Last created unit)
- Unit - Create 1 Dust Effect3 for (Owner of Mist_Of_Dust_Units[1]) at Mist_Of_Dust_Point facing Default building facing degrees
- Set Mist_Of_Dust_Units[5] = (Last created unit)
-
Loop - Actions