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

[Trigger Editor] Unit dies

Status
Not open for further replies.
Level 4
Joined
Nov 17, 2015
Messages
91
Hello! I would like to assign a variable to whoever kills a certain unit already placed on the map. How would I go about doing that?

This is what I have tried.
  • Gnoll Antimage
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Dying unit) Equal to Anti Mage 0057 <gen>
    • Actions
      • Set KilledGnolls[(Player number of (Triggering player))] = True
Thanks for the help hive! :goblin_good_job:

(To sumarize what I'm after: Unit dies, unit is (specific Gnoll), Killer's KilledGnolls variable =true)
 
Level 10
Joined
Apr 4, 2010
Messages
509
attachment.php
 

Attachments

  • GIF.gif
    GIF.gif
    1 MB · Views: 154
Status
Not open for further replies.
Top