- Found in:
- Vanilla
boolfunctionCheckObjectReferenceAgainstReferenceAliasArray(ObjectReferenceObjectToCheck, ReferenceAlias[]ArrayToCheck, boolreturnValueIfArrayIsEmpty=false)Global
Description
Wiki Description
Loops through an array of ReferenceAliases and checks if any of them have the specified ObjectReference in them.
Documentation Comment
jduvall
Caveats
Parameters
boolreturnValueIfArrayIsEmpty=false
CK Wiki Description
If the array is empty, return this.
- Default:false
Examples
if CommonArrayFunctions.CheckObjectReferenceAgainstReferenceAliasArray(ShinyThing, QuestObjectAliases)
Debug.Trace("Shiny thing is a quest object!")
endifAuto-Generated Example
ObjectReference myObjectReference__ObjectToCheck
ReferenceAlias[] myReferenceAliasArray__ArrayToCheck
bool myBool__returnValueIfArrayIsEmpty
bool returnedValue = CommonArrayFunctions.CheckObjectReferenceAgainstReferenceAliasArray(myObjectReference__ObjectToCheck, myReferenceAliasArray__ArrayToCheck, myBool__returnValueIfArrayIsEmpty)Related Pages
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
