AddRef - RefCollectionAlias

From the Fallout4 CreationKit Wiki
Revision as of 08: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

Function AddRef(ObjectReference akNewRef) native

Parameters

Return Value

None.

Examples

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

See Also

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 GetCount function.