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

Description

Wiki Description

Loops through an array of Keywords and checks if the specified ObjectReference has any of them.

Documentation Comment

jduvall


Parameters

  1. ObjectReferenceObjectToCheck

    CK Wiki Description

    The ObjectReference who's Keywords we are looking for

  2. Keyword[]ArrayToCheck

    CK Wiki Description

    The Keyword Array we are looking in

  3. boolreturnValueIfArrayIsEmpty=false

    CK Wiki Description

    If the array is empty, return this.

    • Default:False

Examples

if CommonArrayFunctions.CheckObjectAgainstKeywordArray(Jackhammer, MeleeWeaponKeywords)
   Debug.Trace("The jackhammer is a melee weapon!")
endif

Auto-Generated Example

ObjectReference myObjectReference__ObjectToCheck
Keyword[] myKeywordArray__ArrayToCheck
bool myBool__returnValueIfArrayIsEmpty

bool returnedValue = CommonArrayFunctions.CheckObjectAgainstKeywordArray(myObjectReference__ObjectToCheck, myKeywordArray__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.