Difference between revisions of "GetParents - EquipSlot"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Qazaaq
(added f4se member)
 
imported>Qazaaq
(added required f4se version)
 
Line 1: Line 1:
'''F4SE Member of:''' [[EquipSlot Script]]
'''F4SE Member of:''' [[EquipSlot Script]]
{{Template:Papyrus:RequiredF4SE|version=0.3.1}}


Gets the parents of this equipment slot.
Gets the parents of this equipment slot.

Latest revision as of 13:47, 21 January 2018

F4SE Member of: EquipSlot Script
Requires F4SE version 0.3.1 or higher.

Gets the parents of this equipment slot.

Syntax[edit | edit source]

EquipSlot[] Function GetParents() Native

Parameters[edit | edit source]

None

Return Value[edit | edit source]

Returns an array of this equipment slot's parent Equip Slots.

Examples[edit | edit source]

; Get the parents of this equipment slot.
EquipSlot[] slots = BothHands.GetParents()
Debug.Trace(slots)


{For each parent slot}
EquipSlot[] slots = BothHands.GetParents()
If (slots)
    int index = 0
    While (index < slots.Length)
        Debug.Trace("Found the parent slot '" + slots[index] + "' at index " + index)
        index += 1
    EndWhile
Else
    Debug.Trace("The parent equipment slot array is none or empty.")
EndIf


Notes[edit | edit source]

None

See Also[edit | edit source]