Background for Fallout 4
Member of the BakaUtil script
ObjectReference[]functionFilterReferencesByKeywords(ObjectReference[]aaReferences, Keyword[]aaKeywords, boolabRefrHasKeyword=true)NativeGlobal

Description

Documentation String

Filter the passed array of ObjectReferences for References that have at least one keyword from the passed array of Keywords if RefrHasKeyword is true,
or Filter the passed array of ObjectReferences for References that do not have any of the keywords from the passed array of keywords if RefrHasKeyword is false


Caveats


Parameters

ObjectReference[]aaReferences

Keyword[]aaKeywords

boolabRefrHasKeyword=true


Examples

Auto-Generated Example

ObjectReference[] myObjectReferenceArray__aaReferences
Keyword[] myKeywordArray__aaKeywords
bool myBool__abRefrHasKeyword

ObjectReference[] returnedValue = BakaUtil.FilterReferencesByKeywords(myObjectReferenceArray__aaReferences, myKeywordArray__aaKeywords, myBool__abRefrHasKeyword)
Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.