SetArmorRating - Armor

From the CreationKit Wiki
Revision as of 10:35, 10 May 2012 by imported>Fg109 (Created page for SetArmorRating)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SKSE Member of: Armor Script

Sets the armor rating of the armor to the specified value.

Syntax

float Function SetArmorRating(int armorRating) native
float Function SetAR(int armorRating)

Parameters

  • armorRating: The new rating for the armor.

Return Value

None.

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)

See Also