Difference between revisions of "OnMagicEffectApply - ObjectReference"

From the CreationKit Wiki
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 (False alarm.)
 
(One intermediate revision by the same user not shown)
Line 21: Line 21:
EndEvent
EndEvent
</source>
</source>
== Notes ==
*Any Magic Effect still trigger this event regardless of akEffect being used in a condition expression or not.


== See Also ==
== See Also ==
*[[ObjectReference Script]]
*[[ObjectReference Script]]

Latest revision as of 14:15, 27 February 2016

Member of: ObjectReference Script

Event called when a magic effect is about to be applied to the object reference.

Syntax[edit | edit source]

Event OnMagicEffectApply(ObjectReference akCaster, MagicEffect akEffect)

Parameters[edit | edit source]

Examples[edit | edit source]

Event OnMagicEffectApply(ObjectReference akCaster, MagicEffect akEffect)
  Debug.Trace(akCaster + " applied the " + akEffect + " on us")
EndEvent

See Also[edit | edit source]