Page 1 of 1

Detecting units under attack

Posted: Fri Dec 25, 2009 9:54 am
by krmenadla
Is there a way to detect if unit is being attacked, with what damage type and which unit is attacking it?
I can check if hitpoints have decreased compared to the previous frame, but is there a better way?