Mod:Creation Kit/GetFirstFoundKeywordInArrayForLocation - CommonArrayFunctions

Member of: Mod:Creation Kit/CommonArrayFunctions Script

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

Syntax
Keyword Function GetFirstFoundKeywordInArrayForLocation(Location LocationToCheck, Keyword[] ArrayToCheck) Global

Parameters

 * LocationToCheck: The location we are checking
 * ArrayToCheck: The keywords to check

Return Value
The first keyword in the array applied to the location, or None if none of them are attached, the location is None, the array is None, or the array is empty.

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