Background for Fallout 4
Member of the CommonArrayFunctions script
boolfunctionCheckObjectReferenceAgainstArray(ObjectReferenceObjectToCheck, ObjectReference[]ArrayToCheck, boolreturnValueIfArrayIsEmpty=false)Global

Description

Wiki Description

Checks to see if the passed in reference is in the array. (Basically a wrapper around a simple find, with some None checks)

Documentation Comment

jduvall


Parameters

  1. ObjectReferenceObjectToCheck

    CK Wiki Description

    The ObjectReference we are looking for

  2. ObjectReference[]ArrayToCheck

    CK Wiki Description

    The ObjectReference Array we are looking in

  3. boolreturnValueIfArrayIsEmpty=false

    CK Wiki Description

    If the array is empty, return this.

    • Default:False

Examples

if CommonArrayFunctions.CheckObjectReferenceAgainstArray(ShinyThing, InterestingObjects)
   Debug.Trace("Shiny thing is interesting!")
endif

Auto-Generated Example

ObjectReference myObjectReference__ObjectToCheck
ObjectReference[] myObjectReferenceArray__ArrayToCheck
bool myBool__returnValueIfArrayIsEmpty

bool returnedValue = CommonArrayFunctions.CheckObjectReferenceAgainstArray(myObjectReference__ObjectToCheck, myObjectReferenceArray__ArrayToCheck, myBool__returnValueIfArrayIsEmpty)

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.