Background for Fallout 4
Member of the Actor script
ObjectMod[]functionGetWornItemMods(intslotIndex)Native

Description

Wiki Description

Obtains all the Object Mods for an item at a particular Biped Slot.

Documentation Comment

Returns all the mods for the item at the particular index
returns None if there is no item at this index


Caveats

CK Wiki - Notes

None


Parameters

  1. intslotIndex

    CK Wiki Description

    The Biped Slot index to check.


Examples

; Get the players left hand object mods.
ObjectMod[] objectMods = Game.GetPlayer().GetWornItemMods(4)
{For each object mod}
int LeftHand = 4 const
ObjectMod[] objectMods = Game.GetPlayer().GetWornItemMods(LeftHand)
If (objectMods)
    int index = 0
    While (index < objectMods.Length)
        Debug.Trace("Found the object mod '" + objectMods[index] + "' on slot index " + LeftHand)
        index += 1
    EndWhile
Else
    Debug.Trace("Slot index " + LeftHand + " had no object mods.")
EndIf

Auto-Generated Example

int myInt__slotIndex

ObjectMod[] returnedValue = myActor__toCallFunctionOn.GetWornItemMods(myInt__slotIndex)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.