Background for Fallout 4
Member of the CommonArrayFunctions script
KeywordfunctionGetFirstFoundKeywordInArrayForLocation(LocationLocationToCheck, Keyword[]ArrayToCheck)Global

Description

Wiki Description

Finds and returns the first keyword in the array that is attached to the specified location.

Documentation Comment

jduvall


Caveats


Parameters

LocationLocationToCheck

CK Wiki Description

The location we are checking

Keyword[]ArrayToCheck

CK Wiki Description

The keywords to check


Examples

Keyword theKeyword = CommonArrayFunctions.GetFirstFoundKeywordInArrayForLocation(PlayerLocation, LocationKeywords)
if theKeyword
  theKeyword.SendStoryEvent() ; fire off some quest based on the keyword
endIf

Auto-Generated Example

Location myLocation__LocationToCheck
Keyword[] myKeywordArray__ArrayToCheck

Keyword returnedValue = CommonArrayFunctions.GetFirstFoundKeywordInArrayForLocation(myLocation__LocationToCheck, myKeywordArray__ArrayToCheck)

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.