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