GetArmorRating - Armor
Jump to navigation
Jump to search
SKSE Member of: Armor Script
Gets the armor rating of the armor. (This function requires SKSE)
Syntax[edit | edit source]
float Function GetArmorRating() native
float Function GetAR()
Parameters[edit | edit source]
- None
Return Value[edit | edit source]
The armor rating of the armor.
Examples[edit | edit source]
; Obtain the armor rating of the player's currently equipped cuirass
Armor BodyArmor = Game.GetPlayer().GetWornForm(0x00000004) as Armor
int AR = BodyArmor.GetArmorRating()
; Obtain armor rating of Bob's shield
int AR = Bob.GetEquippedShield().GetAR()
Notes[edit | edit source]
- The return value is the base armor rating.