Damaging player while accounting for his armor

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Barvz

Member
Dec 11, 2023
1
0
1
I'm making a custom weapon and ive been wondering how could I damage a player while accounting for his armor?

if ill just do
Code:
damage player by 5

itll damage the player without accounting for armor,

help?
 
I'm making a custom weapon and ive been wondering how could I damage a player while accounting for his armor?

if ill just do
Code:
damage player by 5

itll damage the player without accounting for armor,

help?
Check if the victim (Player being damaged) has an armor piece or pieces equipped then reduce the total damage by a scale depending on the armor. This may not work super effectively but you could maybe check the Docs to see if there's anything on checking a player's armor points then applying damage based on that stat.