HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

For event Unit takes damage: How to identify the unit that gave it the damage?

09-26-2003, 02:28 PM#1
Vexorian
See the title
09-26-2003, 03:05 PM#2
KaTTaNa
There is no way to do it. :(

There might be a very complicated way by using a lot of arrays and combining that with the Unit is Attacked event, but that would probably be very unreliable.
09-26-2003, 04:19 PM#3
FF_Behemoth
Keyword is Very Unreliable.. but it should work.

- ByTe.ME uswest
09-26-2003, 10:35 PM#4
Grater
So i assume your refering to damage from stuff like shockwave.

In theory there should be some sort of generic way to detect the damage dealing unit, because units definitely know what unit killed them regardless of the means. But I guess that only blizzard could make that piece of data accessable.

If your requirements are quite specific, there may be a somewhat easy method. (for example if only direct damage spells are stuff like stormbolt, you could easily use arrays and stuff). But if your talking the full range of damage spells I think it'd be pretty much impossible, especially with them darn AoE skills.