WornHasKeyword - Actor

Revision as of 19: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)

Member of: Actor Script

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

SyntaxEdit

bool Function WornHasKeyword(Keyword akKeyword) native

ParametersEdit

  • akKeyword: The Keyword to check for

Return ValueEdit

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

ExamplesEdit

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

See AlsoEdit