Background for Fallout 4
Member of the Actor script
Actor:WornItemfunctionGetWornItem(intslotIndex, boolfirstPerson=false)Native

[DEV SERVER] Loading description...


Caveats

CK Wiki - Notes

  • Returns a none struct beyond index 43 as those are actually invalid.
  • Slots with empty forms are just empty slots.

Parameters

intslotIndex

CK Wiki Description

The Biped Slot index to check.

boolfirstPerson=false

CK Wiki Description

Specifies whether first or third person information for the Biped Slot should be returned.


Examples

Actor:WornItem wornItem= Game.GetPlayer().GetWornItem(34)
Debug.Trace("Item: " + wornItem.Item)
Debug.Trace("Model: " + wornItem.Model)
Debug.Trace("ModelName: " + wornItem.ModelName)
Debug.Trace("MaterialSwap: " + wornItem.MaterialSwap)
Debug.Trace("Texture: " + wornItem.Texture)
{For each biped slot}
Actor Player = Game.GetPlayer()
int index = 0
int end = 43 const

while (index < end)
    Actor:WornItem wornItem = Player.GetWornItem(index)
    Debug.Trace("Slot Index: " + index + ", " + wornItem)
    index += 1
EndWhile

Auto-Generated Example

int myInt__slotIndex
bool myBool__firstPerson

Actor:WornItem returnedValue = myActor__toCallFunctionOn.GetWornItem(myInt__slotIndex, myBool__firstPerson)

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.