Find - RefCollectionAlias
Revision as of 10:20, 3 December 2015 by imported>Plplecuyer
Member of: RefCollectionAlias Script
Searches for the specified form in the form list, returning its index (or a negative number if the form isn't found in the list)
Syntax
int Function Find(ObjectReference akFindRef) native
Parameters
- akFindRef: Reference to search for
Return Value
The index of the reference in the reference collection. If the reference isn't found, this number will be negative.
Examples
; Find the bob in the collection
int index = CoolPeople.Find(Bob)
if index < 0
Debug.Trace("Bob isn't a cool person!")
else
Debug.Trace("Bob is the " + location + "th cool person")
endIf