- Joined
- Jun 27, 2010
- Messages
- 2,763
OK, what will be the best way to destroy the pets of the hunter after he dies?
I try this, but does not work.
I tried this with 'and' and 'or'.
I try this, but does not work.
-
if hunter dies his pets die
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Unit-type of (Dying unit)) Equal to Hunter
-
-
Actions
-
Set Hunter_Pets_Temp_Gr = (Units in (Playable map area) matching ((((Unit-type of (Matching unit)) Equal to Misha (Level 1)) and ((Unit-type of (Matching unit)) Equal to Spider)) and (((Matching unit) is A structure) Equal to False)))
-
Unit Group - Pick every unit in Hunter_Pets_Temp_Gr and do (Actions)
-
Loop - Actions
-
Unit - Make (Picked unit) Explode on death
-
Unit - Kill (Picked unit)
-
-
-
Custom script: call DestroyGroup(udg_Hunter_Pets_Temp_Gr)
-
-
I tried this with 'and' and 'or'.