Mod:Creation Kit/OnMagicEffectApply - ScriptObject

Member of: Mod:Creation Kit/ScriptObject Script

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

This event will only be sent to the specific script that registered for it. Other scripts attached to the same form/alias/active magic effect will not receive the event unless they also register.

Parameters

 * akTarget: TheObjectReference being hit by the effect.
 * akAggressor: The ObjectReference that is responsible for the spell.
 * akEffect: The MagicEffect that is attempting to be applied.