AddRefCollection - RefCollectionAlias

From the Fallout4 CreationKit Wiki
Revision as of 08:28, 16 February 2019 by imported>Qazaaq (Added collection size notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: RefCollectionAlias Script

Adds the contents of the passed-in collection alias to this one.

Syntax[edit | edit source]

Function AddRefCollection(RefCollectionAlias refCollectionAliasToAdd)

Parameters[edit | edit source]

  • refCollectionAliasToAdd: The alias whose contents should be added to ours

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Merge the two aliases
Collection1.AddRefCollection(Collection2)

See Also[edit | edit source]

Notes[edit | edit source]

  • 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.