• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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