Difference between revisions of "HasEffectKeyword - ObjectReference"
Jump to navigation
Jump to search
imported>Jlundin |
imported>Chesko (Clarifying that this function cannot test if the effect is actually affecting the reference.) |
||
Line 23: | Line 23: | ||
endIf | endIf | ||
</source> | </source> | ||
== Notes == | |||
*This function will still return true if the effect is applied to the reference but the condition specified in the spell or magic effect are not met. This function cannot test if the active magic effect is actually affecting the reference. | |||
== See Also == | == See Also == | ||
*[[ObjectReference Script]] | *[[ObjectReference Script]] |
Revision as of 10:12, 4 July 2012
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.
Syntax
bool Function HasEffectKeyword(Keyword akKeyword) native
Parameters
- akKeyword: The Keyword to query for.
Return Value
Returns if this reference has an active effect coming from a magic effect with the specified keyword attached.
Examples
; Check to see if we have a fire attached on the player
if Game.GetPlayer().HasEffectKeyword(FireKeyword)
Debug.Trace("It burns!")
endIf
Notes
- This function will still return true if the effect is applied to the reference but the condition specified in the spell or magic effect are not met. This function cannot test if the active magic effect is actually affecting the reference.