Background for Fallout 4
Member of the Actor script
boolfunctionWornHasKeyword(KeywordakKeyword)Native

Description

Wiki Description

Checks to see if anything worn by this actor has the specified keyword attached.

Documentation Comment

Returns whether anything the actor is wearing has the specified keyword


Caveats


Parameters

KeywordakKeyword

CK Wiki Description

The Keyword to check for


Examples

; Is the player wearing a fur coat?
if Game.GetPlayer().WornHasKeyword(FurCoatKeyword)
  Debug.Trace("Player is toasty warm!")
endIf

Auto-Generated Example

Keyword myKeyword__akKeyword

bool returnedValue = myActor__toCallFunctionOn.WornHasKeyword(myKeyword__akKeyword)

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.