Background for Fallout 4
Member of the ObjectReference script
boolfunctionHasKeyword(KeywordapKeyword)Native

Description

Wiki Description

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

Documentation Comment

Returns true if this reference has the specified keyword


Caveats


Parameters

KeywordapKeyword

CK Wiki Description

The Keyword to check for.


Examples

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

Auto-Generated Example

Keyword myKeyword__apKeyword

bool returnedValue = myObjectReference__toCallFunctionOn.HasKeyword(myKeyword__apKeyword)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.