Mod:Creation Kit/GetAt - RefCollectionAlias

Member of: Mod:Creation Kit/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
int icount = Alias_TownsPeople.GetCount int iindex = 0 while (iindex < icount) Alias_TownsPeople.GetAt(iindex).Disable iindex = iindex + 1 endwhile
 * Disable all in collection