GetKeyword - Keyword

From the CreationKit Wiki
Jump to navigation Jump to search

SKSE Member of: Keyword Script

Returns the keyword associated with the string. (This function requires SKSE)

Syntax[edit | edit source]

Keyword Function GetKeyword(string asKeyword) native global

Parameters[edit | edit source]

  • asKeyword: the full name of the keyword. Capitalization does not matter.

Return Value[edit | edit source]

Returns the keyword that matches the given string with its editor ID.

Examples[edit | edit source]

Keyword testKW = Keyword.GetKeyword("weaptypebattleaxe")
if(WeaponProp.HasKeyword(testKW))
  Debug.Notification("Our weapon is a battle axe!")
else
  Debug.Notification("Our weapon is not a battle axe!")
endif

Notes[edit | edit source]

None.

See Also[edit | edit source]