Difference between revisions of "GetEffectiveArmorAR"

7 bytes added ,  12:37, 20 March 2011
no edit summary
imported>Low Post
imported>Low Post
 
Line 10: Line 10:
*CurrentHealth is the value returned by [[GetCurrentHealth]] and/or [[GetEquippedCurrentHealth]]. If you want the armor rating of an undamaged armor, just use 1 as the second parameter.
*CurrentHealth is the value returned by [[GetCurrentHealth]] and/or [[GetEquippedCurrentHealth]]. If you want the armor rating of an undamaged armor, just use 1 as the second parameter.
*This function requires the User Function [[GetEffectiveSkill]]
*This function requires the User Function [[GetEffectiveSkill]]
*If the ref passed as the first argument is not an armor, or this function is not called on a NPC reference, this function returns -1.
*If the ref passed as the first argument is not an armor, or this function is not called on a NPC/Player reference, this function returns -1.


==Code==
==Code==
Anonymous user