GetConstructibleComponents - ConstructibleObject

Revision as of 02:17, 16 October 2017 by imported>Qazaaq (added f4se member)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

F4SE Member of: ConstructibleObject Script

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

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