I want to make a unit so that it is damaged the same amount of damage will apply to another unit at the time the attack struck. I was thinking to do this trought take the current hp of the unit and when the unit got attacked I would get the new hp and calculate te diffrence and take the diffrence from the other unit. Is there another way of doing this or is there a function so that i can see if the unit got attacked?