Difference between revisions of "GetWornItemMods - Actor"
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"> | ||
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> | ||