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

[DEV SERVER] Loading description...


Caveats

CK Wiki - Notes

None


Parameters

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.