GetCount - RefCollectionAlias

From the Fallout4 CreationKit Wiki
Revision as of 10:20, 3 December 2015 by imported>Plplecuyer
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: RefCollectionAlias Script

Gets the number of refs in this collection

Syntax[edit | edit source]

int Function GetCount() native

Parameters[edit | edit source]

None

Return Value[edit | edit source]

  • The number of refs in the collection

Examples[edit | edit source]

;Disable all in collection
int icount = Alias_TownsPeople.GetCount()
int iindex = 0
while (iindex < icount)
  Alias_TownsPeople.GetAt(iindex).Disable()
  iindex = iindex + 1
endwhile

Notes[edit | edit source]

See Also[edit | edit source]