AddRef - RefCollectionAlias

From the Fallout4 CreationKit Wiki
Revision as of 09:27, 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 given ref to this collection

Syntax[edit | edit source]

Function AddRef(ObjectReference akNewRef) native

Parameters[edit | edit source]

Return Value[edit | edit source]

None.

Examples[edit | edit source]

;Add us to the collection
Alias_TownsPeople.AddRef(self)

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.