HasKeywordInFormList - ObjectReference

Member of: ObjectReference Script

Checks to see if any of the keywords in the form list is attached to this reference. If the form list contains no keywords, returns false. This basically operates the same way as HasKeywordInFormList - Form, but can be run on inventory objects.

SyntaxEdit

bool Function HasKeywordInFormList(FormList akKeywordList) native

ParametersEdit

Return ValueEdit

Whether this reference has any of the specified keywords or not.

ExamplesEdit

; Does this object have any of the explosive keywords?
if (Dynamite.HasKeywordInFormList(ExplosiveKeywords))
  Debug.Trace("The dynamite is explosive!")
endIf

See AlsoEdit