GetKeyword - Keyword

Revision as of 15:37, 16 June 2012 by imported>Fg109
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SKSE Member of: Keyword Script

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

SyntaxEdit

Keyword Function GetKeyword(string asKeyword) native global

ParametersEdit

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

Return ValueEdit

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

ExamplesEdit

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

NotesEdit

None.

See AlsoEdit