GetAt - RefCollectionAlias

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: RefCollectionAlias Script

Gets the ref at the given index in this collection

Syntax[edit | edit source]

ObjectReference Function GetAt(int aiIndex) native

Parameters[edit | edit source]

  • aiIndex: The index to get the ref at

Return Value[edit | edit source]

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

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]