• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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