GetWornItemMods - Actor
Revision as of 14:02, 6 April 2017 by imported>Qazaaq (Added GetWornItemMods example papyrus.)
F4SE Member of: Actor Script
Obtains all the ObjectMods for an item at a particular Biped Slot.
Syntax
ObjectMod[] Function GetWornItemMods(int slotIndex) Native
Parameters
- slotIndex: The Biped Slot to check.
Return Value
An array of all ObjectMods obtained from the given Biped Slot, returns none if there is no item.
Examples
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