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

Description

Wiki Description

Adds specified keyword to reference's list of keywords.

Documentation Comment

Adds a keyword to this reference


Caveats

CK Wiki - Notes

Once a keyword has been added by this function it won't be removed if an alias that also added the keyword was removed from the object. In a sense, it "overrides" the base object and alias. To undo the addition, you can use ObjectReference.ResetKeyword(...).


Parameters

KeywordapKeyword

CK Wiki Description

The Keyword to add.


Examples

; Add injured keyword to an actor
ActorToInjure.AddKeyword(InjuredMobilityRightKeywordProperty)

Auto-Generated Example

Keyword myKeyword__apKeyword

myObjectReference__toCallFunctionOn.AddKeyword(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.