Difference between revisions of "OnEffectFinish - ActiveMagicEffect"
Jump to navigation
Jump to search
imported>Nitor |
imported>Lampuiho (→Notes) |
||
Line 23: | Line 23: | ||
== Notes == | == Notes == | ||
* | *None of the ActiveMagicEffect script native function may run in this event even though the internal ActiveEffect object is not deleted if the effect is simply disabled, not dispelled. The papyrus script object itself is detached after oneffectfinish complete. Resetting all properties and script object variables. | ||
*This event is also called when the owning spell is removed from the target or when its conditions become invalid. | *This event is also called when the owning spell is removed from the target or when its conditions become invalid. | ||
Revision as of 00:00, 16 April 2014
Member of: ActiveMagicEffect Script
Event called when the active magic effect has just finished on the specified target.
Syntax
Event OnEffectFinish(Actor akTarget, Actor akCaster)
Parameters
- akTarget: The Actor this effect just finished on.
- akCaster: The Actor that cast the spell this effect is from.
Examples
Event OnEffectFinish(Actor akTarget, Actor akCaster)
Debug.Trace("Magic effect fades from " + akTarget)
endEvent
Notes
- None of the ActiveMagicEffect script native function may run in this event even though the internal ActiveEffect object is not deleted if the effect is simply disabled, not dispelled. The papyrus script object itself is detached after oneffectfinish complete. Resetting all properties and script object variables.
- This event is also called when the owning spell is removed from the target or when its conditions become invalid.