HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to kill/make invulnerable/other actions to unit groups?

08-25-2002, 01:41 AM#1
Guest
Sorry if this has been asked, im a newb at this and i did read the FAQ. I'm trying to destroy a whole group (about 12+) summoned skeletons. I've heard that you can do this by making a variable, but how? Is this the same way you make a whole group of units invulnerable? (with one trigger, not a whole bunch)
08-25-2002, 02:21 AM#2
Draco
Use the trigger action - Unit Group: Pick all units in unit group and do action(Whatever you want them all to do) You can use variables for the unit group, but you don't have to, if you refer to it like, "Type of unit owned by player in region etc.'' Then for the second part of the trigger, use the regular unit triggers and refer to the units as "picked unit" Hope that helps.
08-25-2002, 02:27 AM#3
Guest
I tried using Unit group- pick every unit in the group and do action
but there is no suicide (kill themselves) action!
08-25-2002, 02:54 AM#4
Draco
Isn't there an action Unit - Kill Unit? You could also make them explode on death if you wanted. There is no trigger Unit - Commit Suicide though.
08-25-2002, 11:55 PM#5
Guest
But doesnt unit- kill unit only kill one unit? Im trying to kill a whole group of skeles with one trigger.

Thanks
08-26-2002, 12:53 AM#6
Draco
If you use the trigger action "UNIT GROUP - Pick all units and do [action]", it should work fine. I've used it before in my maps. Just remember to refer to the unit as 'picked unit'