HasKeyword - ObjectReference
Jump to navigation
Jump to search
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.
Syntax[edit | edit source]
bool Function HasKeyword(Keyword akKeyword) native
Parameters[edit | edit source]
- akKeyword: The Keyword to check for.
Return Value[edit | edit source]
True if the passed in keyword is in the reference's list of keywords. False otherwise.
Examples[edit | edit source]
; Determine if an actor's mobility (right leg) is injured
if(ActorToCheck.HasKeyword(InjuredMobilityRightKeywordProperty))
Debug.Trace("Actor's right leg is injured")
endIf