GetWeightClass - Armor
SKSE Member of: Armor Script
Returns the weight class of the armor. (This function requires SKSE)
SyntaxEdit
int Function GetWeightClass() native
ParametersEdit
None.
Return ValueEdit
An integer representing the weight class of the armor:
- 0 = Light
- 1 = Heavy
- 2 = None
ExamplesEdit
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.")
endif