Hello everyone,
I’m making a system for zombie armor but I can’t find the right method to remove the armor that has the least armor point once it’s less then the zombie’s total armor, I’m bad at explaining so here is an example:
let’s say the zombie wear 2 armors:
["Helmet"] = 10,
["Chestplate"] = 15,
That would make the zombie have a total of 25 armor points now when he reach 5 armor points after getting damaged the Helmet will be removed.
How would I achieve this? Thank you.