WornHasKeyword - Actor

From the CreationKit Wiki
Revision as of 18:57, 21 February 2011 by imported>Jlundin (Created page with 'Category:Scripting Category:Papyrus '''Member of:''' Actor Script Checks to see if anything worn by this actor has the specified keyword attached. == Syntax == <sou…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Actor Script

Checks to see if anything worn by this actor has the specified keyword attached.

Syntax[edit | edit source]

bool Function WornHasKeyword(Keyword akKeyword) native

Parameters[edit | edit source]

  • akKeyword: The Keyword to check for

Return Value[edit | edit source]

True if something the actor is wearing has the specified Keyword. False otherwise.

Examples[edit | edit source]

; Is the player wearing a fur coat?
if Game.GetPlayer().WornHasKeyword(FurCoatKeyword)
  Debug.Trace("Player is toasty warm!")
endIf

See Also[edit | edit source]