Difference between revisions of "OnMagicEffectApply - ObjectReference"
Jump to navigation
Jump to search
imported>Terra Nova2 m (Note on akEffect possibly not working as intended when used in a condition expression.) |
imported>Terra Nova2 m (→Notes) |
||
Line 23: | Line 23: | ||
== Notes == | == Notes == | ||
*Any Magic Effect still | *'''Any''' Magic Effect still triggers this event regardless of akEffect being used in a condition expression or not. | ||
== See Also == | == See Also == | ||
*[[ObjectReference Script]] | *[[ObjectReference Script]] |
Revision as of 15:00, 27 February 2016
Member of: ObjectReference Script
Event called when a magic effect is about to be applied to the object reference.
Syntax
Event OnMagicEffectApply(ObjectReference akCaster, MagicEffect akEffect)
Parameters
- akCaster: The ObjectReference that is responsible for the spell.
- akEffect: The MagicEffect that is attempting to be applied.
Examples
Event OnMagicEffectApply(ObjectReference akCaster, MagicEffect akEffect)
Debug.Trace(akCaster + " applied the " + akEffect + " on us")
EndEvent
Notes
- Any Magic Effect still triggers this event regardless of akEffect being used in a condition expression or not.