GetWornItem - Actor

From the Fallout4 CreationKit Wiki
Revision as of 12:41, 6 April 2017 by imported>Qazaaq (Added F4SE member)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

F4SE Member of: Actor Script

Obtains WornItem information about an actors Biped Slot.

Syntax

WornItem Function GetWornItem(int slotIndex, bool firstPerson = false) Native

Parameters

  • slotIndex: The Biped Slot to check.
  • firstPerson: Specifies whether first or third person information for the Biped Slot should be returned.

Return Value

The WornItem for the given Biped Slot.

Examples

Actor:WornItem wornValue = Game.GetPlayer().GetWornItem(34)
Debug.Trace(wornValue.Item)
Debug.Trace(wornValue.Model)
Debug.Trace(wornValue.ModelName)
Debug.Trace(wornValue.MaterialSwap)
Debug.Trace(wornValue.Texture)

Notes

  • Item can be none and still contain other information at a particular slot.

See Also