HasKeywordInFormList - Form

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Form Script

Checks to see if any of the keywords in the form list is attached to this form. If the form list contains no keywords, returns false.

Syntax[edit | edit source]

bool Function HasKeywordInFormList(FormList akKeywordList) native

Parameters[edit | edit source]

Return Value[edit | edit source]

Whether this form has any of the specified keywords or not. If the form doesn't support keywords, it will always return false.

Examples[edit | edit source]

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

See Also[edit | edit source]