HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Killing Player?

07-29-2003, 08:55 PM#1
MiCroSlave
Is there a way to get the player who killed a unit, when the killing unit = no unit?

Example: Player 1 casts doom on a ghoul, the ghoul dies.

How can I get, from a trigger, the player who killed that ghoul?

Owner of (Killing Unit) doesn't work, since Killing unit will return no unit.

Any ideas?
07-29-2003, 11:17 PM#2
Panto
How would a player cast doom on a unit without having a unit that can cast doom?
07-29-2003, 11:26 PM#3
Pesmerga
unless you remove the unit before the trigger activates, the killing unit will always be the unit that casted doom. Even if units die, they still exist unless removed.
07-30-2003, 12:05 AM#4
MiCroSlave
Oh really? I thought that it would return no unit if the unit that cast doom wasn't on the playable map (dead for example).

Thanks.