GetWornItemMods - Actor

Revision as of 21:03, 26 April 2017 by imported>Qazaaq (Using slot index and not the slot number.)

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

Return Value

An array of all Object Mods obtained from the given Biped Slot index, returns none if there is no item.

Examples

int LeftHand = 4 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 index " + LeftHand)
        index += 1
    EndWhile
Else
    Debug.Trace("Slot index " + LeftHand + " had no object mods.")
EndIf

Notes

None

See Also