Difference between revisions of "RemoveRef - RefCollectionAlias"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Qazaaq
(Added collection size notes)
imported>Ice Eyes
m (→‎Syntax: Corrected parameter name)
Line 5: Line 5:
== Syntax ==
== Syntax ==
<source lang="papyrus">
<source lang="papyrus">
Function RemoveRef(ObjectReference akRefToRemove) native
Function RemoveRef(ObjectReference akRemoveRef) native
</source>
</source>



Revision as of 12:14, 19 June 2019

Member of: RefCollectionAlias Script

Removes the given reference from this collection

Syntax

Function RemoveRef(ObjectReference akRemoveRef) native

Parameters

Return Value

None.

Examples

;Take us out of the collection
Alias_TownsPeople.RemoveRef(self)

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.

See Also