I am trying my hand at a data based respawn method for heroes in my game (On paper, it looked much more efficient). I have the behavior working properly; when fatal damage is taken, it disables my hero, makes it invulnerable, and restores life over time. The problem I am running into is for score counter purposes. I am unable to get the killing unit (or owner of killing unit).
My best bet looked like "Unit Behavior Effect Unit" however, the source, caster, target, and origin unit are all the unit with the behavior. I cannot for the life of me figure out how to reference the unit which casued the "fatal" damage.
I am trying my hand at a data based respawn method for heroes in my game (On paper, it looked much more efficient). I have the behavior working properly; when fatal damage is taken, it disables my hero, makes it invulnerable, and restores life over time. The problem I am running into is for score counter purposes. I am unable to get the killing unit (or owner of killing unit).
My best bet looked like "Unit Behavior Effect Unit" however, the source, caster, target, and origin unit are all the unit with the behavior. I cannot for the life of me figure out how to reference the unit which casued the "fatal" damage.
Skype: [email protected] Current Project: Custom Hero Arena! US: battlenet:://starcraft/map/1/263274 EU: battlenet:://starcraft/map/2/186418
Use "Effect used" event. The target of the effect should be the killing unit.
Awesome, thanks, it worked. I would have never thought of an "environment" event; racking my brain looking through every unit event.
Skype: [email protected] Current Project: Custom Hero Arena! US: battlenet:://starcraft/map/1/263274 EU: battlenet:://starcraft/map/2/186418