- Found in:
- Vanilla
Description
Wiki Description
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)
Documentation Comment
Finds the specified reference in the collection. Returns a negative value if not found.
Caveats
Parameters
Examples
; Find the bob in the collection
int index = People.Find(Bob)
If (index < 0)
Debug.Trace("Bob could not be found.")
Else
Debug.Trace("Found Bob at index " + index + " in the people collection.")
EndIfAuto-Generated Example
ObjectReference myObjectReference__akFindRef
int returnedValue = myRefCollectionAlias__toCallFunctionOn.Find(myObjectReference__akFindRef)Related Pages
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
