Mod:Creation Kit/GetConstructibleComponents - ConstructibleObject

F4SE Member of: Mod:Creation Kit/ConstructibleObject Script

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
ConstructibleObject:ConstructibleComponent[] constructibleComponents = myConstructibleObject.GetConstructibleComponents Debug.Trace(constructibleComponents)
 * Get this constructible objects required item list.

{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