Ok svn now has a new set of properties to check for the killer in the unitdied event:
lastDeadUnitKillerName
lastDeadUnitKiller
These will be "" and -1 if the cause of death was not from an attacker (Attacked). To check cause of death:
lastDeadUnitCauseOfDeath
None = 0
Attacked = 1
AttackBoost = 2
StarvedResource = 3
StarvedRegeneration =4
Thanks