GetCount - RefCollectionAlias

From Creation Kit
Jump to: navigation, search

Member of: RefCollectionAlias Script

Gets the number of refs in this collection

Syntax

int Function GetCount() native

Parameters

None

Return Value

  • The number of refs in the collection

Examples

;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

See Also