Package armor::damage(%data, %player, %attacker, %pos, %damage, %type) and get the position before parenting. Don't forget to make sure that it's your bot that's dying. Pretty sure that %pos is the position where they were damaged(like where the projectile hit them).