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

Description

Wiki Description

Removes a keyword from a reference's list of keywords.

Documentation Comment

Removes a keyword from this reference


Caveats

CK Wiki - Notes

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


Parameters

KeywordapKeyword

CK Wiki Description

The Keyword to remove.


Examples

; Remove keyword indicating an actor's right leg is injured
ActorToHeal.RemoveKeyword(InjuredMobilityRightKeywordProperty)
Debug.Trace("Actor's right leg injured keyword was removed")

Auto-Generated Example

Keyword myKeyword__apKeyword

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