OnMagicEffectApply - ObjectReference

From the CreationKit Wiki
Revision as of 15:15, 27 February 2016 by imported>Terra Nova2 (False alarm.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

See Also