Add takeDamage function to actor