Greetings there! ^_^
So i am designing an armor system as a string value. When being hit, i want to reduce the dmg by the value of the armor in %
- Let's say damge is 50 and armor is 20, i want the damage to be reduced by armor in % and not flat out 20.
Is there some way to do this?
Player in collission with Bullet, substract from player health 20-Player.armor (this will be flat out 20, but i want the 20 to be %, how to do this?)
Thanks in advance!