RemoveAll - RefCollectionAlias

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: RefCollectionAlias Script

Clears all references out of this collection. Will error if this alias is not optional.

Syntax[edit | edit source]

Function RemoveAll() native

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Clear the alias out
Alias_TownsPeople.RemoveAll()

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.