GetConstructibleComponents - ConstructibleObject

From Creation Kit
Jump to: navigation, search

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

Gets the required item list for this constructible object.

Syntax

ConstructibleComponent[] Function GetConstructibleComponents() Native

Parameters

None

Return Value

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

Examples

; 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

None

See Also