HasEffectKeyword - ObjectReference
Member of: ObjectReference Script
Checks to see if the specified keyword is attached to a magic effect that belongs to an active effect currently on this reference.
SyntaxEdit
bool Function HasEffectKeyword(Keyword akKeyword) native
ParametersEdit
- akKeyword: The Keyword to query for.
Return ValueEdit
Returns if this reference has an active effect coming from a magic effect with the specified keyword attached.
ExamplesEdit
; Check to see if we have a fire attached on the player
if Game.GetPlayer().HasEffectKeyword(FireKeyword)
Debug.Trace("It burns!")
endIf
NotesEdit
- This function will still return true if the effect is applied to the reference but the condition specified in the spell or magic effect is not met. This function cannot test if the active magic effect is actually affecting the reference.