Background for Fallout 4
Member of the ObjectReference script
boolfunctionHasEffectKeyword(KeywordakKeyword)Native

Description

Wiki Description

Checks to see if the specified keyword is attached to a magic effect that belongs to an active effect currently on this reference.

Documentation Comment

Returns if this reference has an active effect coming from a magic effect with the specified keyword attached


Caveats


Parameters

KeywordakKeyword

CK Wiki Description

The Keyword to query for.


Examples

; Check to see if we have a fire attached on the player
if Game.GetPlayer().HasEffectKeyword(FireKeyword)
  Debug.Trace("It burns!")
endIf

Auto-Generated Example

Keyword myKeyword__akKeyword

bool returnedValue = myObjectReference__toCallFunctionOn.HasEffectKeyword(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.