OnMagicEffectApply - ObjectReference

Revision as of 14:00, 27 February 2016 by imported>Terra Nova2 (Note on akEffect possibly not working as intended when used in a condition expression.)

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

Examples

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

Notes

  • Any Magic Effect still trigger this event regardless of akEffect being used in a condition expression or not.

See Also