- Found in:
- Vanilla
Description
Wiki Description
Adds the contents of the array to this collection.
Documentation Comment
kmk
add an array of references to a collection
Caveats
CK Wiki - Notes
- A RefCollectionAlias will automatically shrink and expand its size when items are added or removed. The collection's count can be measured with the RefCollectionAlias.GetCount() function.
- Reference Aliases inside arrays will not be added to a collection if they are none. An error will be printed to the log if an element is none.
Parameters
Examples
; Add the array to the collection
Ghosts.AddArray(EvenMoreGhosts)Auto-Generated Example
ObjectReference[] myObjectReferenceArray__refArrayToAdd
myRefCollectionAlias__toCallFunctionOn.AddArray(myObjectReferenceArray__refArrayToAdd)Related Pages
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
