GetWornItemMods - Actor

Revision as of 14:04, 6 April 2017 by imported>Qazaaq (Changed example indent style from tabs to spaces.)

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

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

Notes

See Also