Jump to content

Variable: Armor Health Percentage


Recommended Posts

Hello, I am a noobish Modder. I have made a few basic mods, and I now want to make my first serious mod.

 

I am trying to do some scripting, but I am having trouble finding a variable, and even more trouble figuring out how to make one.

 

I am trying to make an armor script, but my script needs to know the condition of the armor. I can't find a "getarmorhealth" function or anything.

 

Can someone help me either find one or make one?

Link to comment
Share on other sites

If you only need a general idea of the armor health, you can use:

 

http://geck.bethsoft.com/index.php/GetArmorRating

(or GetArmorRatingUpperBody which works similarly).

 

If you need a precise health value, then you're going to have to use FOSE and GetEquippedCurrentHealth.

 

float armor
set armor to player.GetEquippedCurrentHealth 2

 

 

Thanks! Exactly what I needed!

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...