GetWornItemMods - Actor
Revision as of 17:00, 6 April 2017 by imported>Qazaaq (Fixed object mod link)
F4SE Member of: Actor Script
Obtains all the Object Mods 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 Object Mods 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