AddArray - RefCollectionAlias

Revision as of 11:19, 5 March 2021 by imported>Scrivener07 (→‎Notes: None references can't be added to collections.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: RefCollectionAlias Script

Adds the contents of the array to this collection.

SyntaxEdit

Function AddArray(ObjectReference[] refArrayToAdd)

ParametersEdit

  • refArrayToAdd: The array whose contents should be added

Return ValueEdit

None.

ExamplesEdit

; Add the array to the collection
Ghosts.AddArray(EvenMoreGhosts)

NotesEdit

  • A RefCollectionAlias will automatically shrink and expand its size when items are added or removed. The collection's count can be measured with the 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.

See AlsoEdit