• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Player, kill selected unit command

Status
Not open for further replies.
Level 8
Joined
Mar 29, 2008
Messages
71
Looking to make a chat command for now using triggers that when the plyer types -kill while selected on a unit or group of that players units they will be removed or killed preferably removed from the game. This is so say a player has to many units they can minimize their unit count or if they need more room to build more units they can just get rid of some.
 
Last edited:
I think it'd be better to use a unit group instead of just picking a random unit within selection, so something like...

  • Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Unit - Remove (Picked unit) from the game)

Your way creates a unit group, just the same as mine except that yours is slower.
Yours also removes every unit selected by the player which isn't what the OP wanted.
 
Status
Not open for further replies.
Top