- Joined
- Sep 10, 2012
- Messages
- 39
Forgive me if there is already a thread related to this subject, but I wanted to know if there was a way to add dead units to unit groups. My previous attempt used the following trigger.
-
Corpse Explosion PreCast Targets
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to (Alev) Corpse Explosion
-
Actions
-
Unit Group - Pick every unit in (Random 1 units from (Units within 500.00 of CETargetLoc matching ((((Matching unit) is alive) Equal to False) and ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Mechanical) Equal to False))))) and do (Actions)
-
Loop - Actions
- Unit Group - Add (Picked unit) to CETargets
-
Loop - Actions
- Trigger - Run Corpse Explosion PreCast Condition <gen> (ignoring conditions)
-
Unit Group - Pick every unit in (Random 1 units from (Units within 500.00 of CETargetLoc matching ((((Matching unit) is alive) Equal to False) and ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Mechanical) Equal to False))))) and do (Actions)
-
Events