22.11.2015, 22:07
I have a custom damage script, which uses OnPlayerTakeDamage and then applies whatever damage I've scripted it to apply. The problem is, if say, a player's armour is 50, and their armour is damaged until it reaches 0, it then resets and their armour is restored to 100. Any idea how to fix this?
EDIT: Never mind. Just set their armour to 0 instead of decreasing it, if their armour is at or below the damage amount.
This can be locked.
EDIT: Never mind. Just set their armour to 0 instead of decreasing it, if their armour is at or below the damage amount.
This can be locked.