OnEffectFinish - ActiveMagicEffect
From Creation Kit
Member of: ActiveMagicEffect Script
Event called when the active magic effect has just finished on the specified target.
Event OnEffectFinish(Actor akTarget, Actor akCaster)
- akTarget: The Actor this effect just finished on.
- akCaster: The Actor that cast the spell this effect is from.
Event OnEffectFinish(Actor akTarget, Actor akCaster) Debug.Trace("Magic effect fades from " + akTarget) endEvent
- By the time this event is called, the active magic effect may have already been deleted by the game. Any native calls to this active magic effect may fail.
- Also, since the game forcibly deletes ActiveMagicEffects, if the script has a circular reference to itself (via a local variable - either directly or via a struct/array) that circular reference will be forcibly cleared by the Papyrus garbage collector, resulting in the value receiving a None value.