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

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.")
endif

Auto-Generated Example

int returnedValue = myArmor__toCallFunctionOn.GetWeightClass()

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.