Difference between revisions of "AddKeyword - ObjectReference"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Plplecuyer
 
imported>Ice Eyes
m (→‎Parameters: Corrected parameter name)
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
== Syntax ==
== Syntax ==
<source lang="papyrus">
<source lang="papyrus">
Function AddKeyword(Keyword akKeyword) native
Function AddKeyword(Keyword apKeyword) native
</source>
</source>


== Parameters ==
== Parameters ==
*akKeyword: The [[Keyword Script|Keyword]] to add.
*apKeyword: The [[Keyword Script|Keyword]] to add.


== Examples ==
== Examples ==

Latest revision as of 05:18, 20 August 2019

Member of: ObjectReference Script

Adds specified keyword to reference's list of keywords.

Syntax[edit | edit source]

Function AddKeyword(Keyword apKeyword) native

Parameters[edit | edit source]

Examples[edit | edit source]

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

Notes[edit | edit source]

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 ResetKeyword.

See Also[edit | edit source]