WornHasKeyword - Actor

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