Difference between revisions of "GetWornItemMods - Actor"

305 bytes added ,  14:02, 6 April 2017
Added GetWornItemMods example papyrus.
imported>Qazaaq
(Added F4SE member)
 
imported>Qazaaq
(Added GetWornItemMods example papyrus.)
Line 20: Line 20:
== Examples ==
== Examples ==
<source lang="papyrus">
<source lang="papyrus">
; todo
int LeftHand = 34 const
ObjectMod[] mods = Game.GetPlayer().GetWornItemMods(LeftHand)
If (mods)
int index = 0
While (index < mods.Length)
Debug.Trace("Found the object mod '" + mods[index] + "' on slot " + LeftHand)
index += 1
EndWhile
Else
Debug.Trace("Slot " + LeftHand + " had no object mods.")
EndIf
</source>
</source>


Anonymous user