HasKeyword - ObjectReference

Member of: ObjectReference Script

Queries if a reference has a keyword in its list of keywords. This basically operates the same way as HasKeyword - Form, but can be run on inventory objects.

SyntaxEdit

bool Function HasKeyword(Keyword akKeyword) native

ParametersEdit

  • akKeyword: The Keyword to check for.

Return ValueEdit

True if the passed in keyword is in the reference's list of keywords. False otherwise.

ExamplesEdit

; Determine if an actor's mobility (right leg) is injured
if(ActorToCheck.HasKeyword(InjuredMobilityRightKeywordProperty))
  Debug.Trace("Actor's right leg is injured")
endIf

See AlsoEdit