GetArmorRating - Armor

From Creation Kit
Jump to: navigation, search

SKSE Member of: Armor Script

Gets the armor rating of the armor. (This function requires SKSE)

Syntax

float Function GetArmorRating() native
float Function GetAR()

Parameters

  • None

Return Value

The armor rating of the armor.

Examples

; 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

  • The return value is the base armor rating.

See Also