There's a little more, too.
To get the unit that took the damage, use GetTriggerUnit().
To get the unit that dealt the damage, use GetEventDamageSource().
EDIT: That's not the kind of damage we're talking about. EventUnitDamage only works when a unit actually takes damage. So, in order for it to work in the way that you want it, the unit would have to hit the something, first. However, even then it won't really work, because I believe the damage will be affected by armor.
It's not impossible, though... Sorry, I don't have to the time to explain; gotta go! |