GetAt - RefCollectionAlias

Member of: RefCollectionAlias Script

Gets the ref at the given index in this collection

SyntaxEdit

ObjectReference Function GetAt(int aiIndex) native

ParametersEdit

  • aiIndex: The index to get the ref at

Return ValueEdit

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

ExamplesEdit

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

NotesEdit

See AlsoEdit