GetAt - RefCollectionAlias

Revision as of 10:20, 3 December 2015 by imported>Plplecuyer
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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