Background for Fallout 4
Member of the RefCollectionAlias script
intfunctionFind(ObjectReferenceakFindRef)Native

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

ObjectReferenceakFindRef

CK Wiki Description

Reference to search for


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.")
EndIf

Auto-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

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.