HasKeyword - Form

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Form Script

Checks to see if the specified keyword is attached to this form.

Syntax[edit | edit source]

bool Function HasKeyword(Keyword akKeyword) native

Parameters[edit | edit source]

  • akKeyword: The Keyword to query for.

Return Value[edit | edit source]

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

Examples[edit | edit source]

; Does this object have a doom keyword?
if (NiceSwordProperty.HasKeyword(DoomKeywordProperty))
  Debug.Trace("The nice sword is a doom sword")
endIf

See Also[edit | edit source]