HasKeyword - Form

From the CreationKit Wiki
Revision as of 15:27, 18 October 2011 by imported>Rhavlovick (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Form Script

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

Syntax

bool Function HasKeyword(Keyword akKeyword) native

Parameters

  • akKeyword: The Keyword to query for.

Return Value

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

Examples

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

See Also