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

Kill Credit with Triggered abilities

Status
Not open for further replies.
Level 7
Joined
May 11, 2010
Messages
278
So my map is based around knocking people into hazards with knockback spells, all triggered. However, i need a system for keeping track of who killed who, so I can put up a scoreboard with kills (knockouts) and deaths for each player.

Basically, how can i check if a certain unit killed another unit with a triggered ability that deals no damage?
And please, GUI.
 
Level 7
Joined
May 11, 2010
Messages
278
Seems sensible. I'll let you know if i run into any issues.
However, if a player would accidentally suicide by running into a hazard, it would return no player. But i want to add 1 to "suicide count" for said player. How can i check if there is no player stored?
 
Level 7
Joined
May 11, 2010
Messages
278
Oh wait, i could just store the owner of the unit when the unit respawns and when a knockback finishes. So the if the "player who last knocked the unit" is the owner of the unit, i add a suicide point to the player.
 
Status
Not open for further replies.
Top