Difference between revisions of "OnEffectStart - ActiveMagicEffect"
Jump to navigation
Jump to search
imported>Rhavlovick m (1 revision: Clobber re-import by Henning) |
imported>Fg109 |
||
Line 21: | Line 21: | ||
endEvent | endEvent | ||
</source> | </source> | ||
== Notes == | |||
*If a magic effect is on an ability given to an actor, changing the actor's race will cause the effect to be re-applied, and this event is called again. | |||
*If a magic effect is on an enchantment on an actor's equipment, changing the actor's race will not cause the effect to be re-applied, and this event is not called again. | |||
== See Also == | == See Also == | ||
*[[ActiveMagicEffect Script]] | *[[ActiveMagicEffect Script]] | ||
*[[OnEffectFinish - ActiveMagicEffect]] | *[[OnEffectFinish - ActiveMagicEffect]] |
Latest revision as of 12:11, 10 June 2012
Member of: ActiveMagicEffect Script
Event called when the active magic effect has just started on the specified target.
Syntax[edit | edit source]
Event OnEffectStart(Actor akTarget, Actor akCaster)
Parameters[edit | edit source]
- akTarget: The Actor this effect was applied to.
- akCaster: The Actor that cast the spell this effect was from.
Examples[edit | edit source]
Event OnEffectStart(Actor akTarget, Actor akCaster)
Debug.Trace("Magic effect was started on " + akTarget)
endEvent
Notes[edit | edit source]
- If a magic effect is on an ability given to an actor, changing the actor's race will cause the effect to be re-applied, and this event is called again.
- If a magic effect is on an enchantment on an actor's equipment, changing the actor's race will not cause the effect to be re-applied, and this event is not called again.