Difference between revisions of "GetWornItemMods - Actor"

24 bytes added ,  14:04, 6 April 2017
Changed example indent style from tabs to spaces.
imported>Qazaaq
(Added GetWornItemMods example papyrus.)
imported>Qazaaq
(Changed example indent style from tabs to spaces.)
Line 23: Line 23:
ObjectMod[] mods = Game.GetPlayer().GetWornItemMods(LeftHand)
ObjectMod[] mods = Game.GetPlayer().GetWornItemMods(LeftHand)
If (mods)
If (mods)
int index = 0
    int index = 0
While (index < mods.Length)
    While (index < mods.Length)
Debug.Trace("Found the object mod '" + mods[index] + "' on slot " + LeftHand)
        Debug.Trace("Found the object mod '" + mods[index] + "' on slot " + LeftHand)
index += 1
        index += 1
EndWhile
    EndWhile
Else
Else
Debug.Trace("Slot " + LeftHand + " had no object mods.")
    Debug.Trace("Slot " + LeftHand + " had no object mods.")
EndIf
EndIf
</source>
</source>
Anonymous user