Background for Skyrim SE
Member of the Armor script
voidfunctionSetArmorRating(intarmorRating)Native

Description

Wiki Description

Sets the armor rating of the armor to the specified value. (This function requires SKSE)


Caveats

CK Wiki - Notes

  • Changes the base armor rating.

Parameters

intarmorRating

CK Wiki Description

The new rating for the armor. Negative values result in semi-random and large values for armor rating.


Examples

; Double the armor rating of the player's currently equipped cuirass
Armor BodyArmor = Game.GetPlayer().GetWornForm(0x00000004) as Armor
BodyArmor.SetArmorRating(BodyArmor.GetArmorRating() * 2)
; Set armor rating of Bob's shield to 100
Bob.GetEquippedShield().SetAR(100)

Auto-Generated Example

int myInt__armorRating

myArmor__toCallFunctionOn.SetArmorRating(myInt__armorRating)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.