- Found in:
- SKSE
Description
Wiki Description
Returns the weight class of the armor. (This function requires SKSE)
Documentation Comment
Weight Class
0 = Light Armor
1 = Heavy Armor
2 = None
Caveats
Examples
Armor PlayerShield = Game.GetPlayer().GetEquippedShield()
if (PlayerShield)
int WeightClass = PlayerShield.GetWeightClass()
if (WeightClass == 0)
Debug.Trace("Player is equipped with a light shield.")
elseif (WeightClass == 1)
Debug.Trace("Player is equipped with a heavy shield.")
else
Debug.Trace("Strange! The player has a shield equipped, but it's neither light nor heavy.")
endif
else
Debug.Trace("Player doesn't have an equipped shield.")
endifAuto-Generated Example
int returnedValue = myArmor__toCallFunctionOn.GetWeightClass()Related Pages
- Armor
- Armor.SetWeightClass(...)
