So i made armor type(steel), and for easch equipment slot i made armor rating for example: Steel helmet, armor rating 5.
Now i need to reduce incomeing dmg from AI.
Is there a way to calculate incomeing dmg from AI than minus the overall armor rating of the dmg reciver then resolve the loss of HP.
The system you are using has got Armor structure(FItemInfo) already, you can expand it by adding ArmorType and other needed variables to it.
It also provides equipment system, so you may access equipped parts in CH_MyCharacter blueprint (variable Equipment). Then you can create a short function which will loop through all “Equipment” array elements and sum up its armor rating.
You can use it with the event ApplyAnyDamage. So whenever your character receives damage, you can subtract from it total armor rating and then reduce CurrentHealth by this amount.
Health&Damage system can be a pretty vast topic and there are various ways to implement it. Check some yt tutorials and then from the damage character is receiving subtract armor rating.
Well thats is the thing. I am Noob at this. I have so little knowlage about this but as i am trying new things on my own i start to understand a bit better all of unreal engine.
About the loop that will sum up all the armor rating, mby you can make example?
Same for damage?