- Found in:
- Vanilla
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
Caveats
Parameters
ObjectReferenceObjectToCheck
CK Wiki Description
The ObjectReference who's Keywords we are looking for
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!")
endifAuto-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
