GetConstructibleComponents - ConstructibleObject

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

F4SE Member of: ConstructibleObject Script
Requires F4SE version 0.4.2 or higher.

Gets the required item list for this constructible object.

Syntax[edit | edit source]

ConstructibleComponent[] Function GetConstructibleComponents() Native

Parameters[edit | edit source]

None

Return Value[edit | edit source]

Returns an array of ConstructibleComponent structures for this constructible objects required item list.

Examples[edit | edit source]

; Get this constructible objects required item list.
ConstructibleObject:ConstructibleComponent[] constructibleComponents = myConstructibleObject.GetConstructibleComponents()
Debug.Trace(constructibleComponents)


{For each required item}
ConstructibleObject:ConstructibleComponent[] constructibleComponents = myConstructibleObject.GetConstructibleComponents()
If (constructibleComponents)
    int index = 0
    While (index < constructibleComponents.Length)
        Debug.Trace("Found the required item '" + constructibleComponents[index] + "' at index " + index)
        index += 1
    EndWhile
Else
    Debug.Trace("The constructible objects required item list is none or empty.")
EndIf


Notes[edit | edit source]

None

See Also[edit | edit source]