Mod:Creation Kit/HasKeyword - ObjectReference

Member of: Mod:Creation Kit/ObjectReference Script

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

Syntax
bool Function HasKeyword(Keyword akKeyword) native

Parameters

 * akKeyword: The Keyword to check for.

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

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