Difference between revisions of "GetEffectiveArmorAR"
Jump to navigation
Jump to search
no edit summary
imported>Low Post m (→Code) |
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== |