Morrowind Mod:GetArmorType

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

GetArmorType

                GetArmorType, ArmorLocation

       Where:   ArmorLocation = Short value indicating which armor piece to check.
                                        Helmet           0
                                        Cuirass          1
                                        Left Pauldron    2
                                        Right Pauldron   3
                                        Greaves          4
                                        Boots            5
                                        Left Gauntlet    6
                                        Right Gauntlet   7
                                        Shield           8
                                        Left Bracer      9
                                        Right Bracer    10

        Type:   Object, Tribunal

     Returns:   short (-1 to 2)
                        Unarmored       -1
                        Light Armor      0
                        Medium Armor     1
                        Heavy Armor      2

     Example:   if ( GetArmorType, 0 == 1 )
                if ( player->GetArmorType, 8 == 2 )
                if ( "adairan lalansour"->GetArmorType, 5 >= 0 )

     Scripts:

Returns the armor weight class of the actor's armor at the given location.

See Also: GetWeaponType