Delete all footmen from map with trigger

Hello, I’m trying to delete all footmen with a trigger in a 4 player coop map I’ve been developing. I want it to work like this: It need to be its own trigger that starts off, this trigger is called with “run” once after a boss is killed and should then delete all footmen in the map. There are loads of different units in the map which makes this very hard for me as I only want to target footmen, using conditions such as “is a ground unit” deletes other type of units such as knights. Any help would be appreciated, thanks!

set variable YourUnitGroup = units in playable map area matching - (unit type of matching unit equal to footman)

unit group - pick every unit in YourUnitGroup and do multiple actions

unit - remove picked unit

custom script call DestroyGroup(udg_YourUnitGroup)

1 Like

Thank you! I had a headache yesterday trying to combine different actions guessing my way. One of the things I had to change was: “set variable YourUnitGroup = Units of type” as trying to select “units in playable map area matching” didn’t work since I swapped footmen to a custom unit now. I am really happy to see it work now as the units are removed.

I really wish the Warcraft 3 editor was easier to use. Simply if Blizzard removed duplicate buttons and menus in the program, for instance if you click “Module” in the menu you can find “Sound editor” however it can also be found below as an icon. Having so many duplicate buttons i unnecessary and makes the editor bloated and hard to navigate for those who are new to making maps. Blizzard should also change default asset mode to “SD” in the editor as it was crashing because I don’t have reforged. Video settings in editor I would like to see Blizzard set default to “High” because they were set to medium for particles and textures which made it confusing as to why it looked different in-game compared to editor.