GetAt - RefCollectionAlias

From Creation Kit
Jump to: navigation, search

Member of: RefCollectionAlias Script

Gets the ref at the given index in this collection

Syntax

ObjectReference Function GetAt(int aiIndex) native

Parameters

  • aiIndex: The index to get the ref at

Return Value

  • The ObjectReference at aiIndex in the collection or None if the index is out of bounds.

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