• 🏆 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!

[Solved] Need Help use command to kill unit

Not open for further replies.
Level 5
May 8, 2020
I want to use a command : -die
to kill my hero without knowing how
sorry , i need an easy command


  • c44.png
    24.1 KB · Views: 22
This should work without setting up anything else (assuming you only have one hero).

  • Events
    • Player - Player 1 (Red) types a chat message containing -die as An exact match
  • Conditions
  • Actions
    • Unit - Kill (Random unit from (Units owned by Player 1 (Red) matching (((Matching unit) is A Hero) Equal to True).))
Not open for further replies.