Jump to content

geck function to get maximum health of current equipped armor?


FishBiter

Recommended Posts

Just as the title says, I can't find out what the function is to get the current durability percentage of the player's equipped armor.



The only relevant function I've found is



Player.getequippedcurrenthealth 2





I need a function that either returns the max health for equipped object 2, or that gives the health percentage of object 2.



Anyone know?

Link to comment
Share on other sites

Use this:

 

set rArmor to player.GetEquippedObject 2

set fMaxHealth to GetHealth rArmor

 

(EDIT) Clarification: Use GetHealth alongside GetEquippedCurrentHealth. The former returns the base object's max health, the later the current health.

Edited by jazzisparis
Link to comment
Share on other sites

  • Recently Browsing   0 members

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