Background for Fallout 4
Member of the RefCollectionAlias script
voidfunctionAddArray(ObjectReference[]refArrayToAdd)

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

ObjectReference[]refArrayToAdd

CK Wiki Description

The array whose contents should be added


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

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.