• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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