Background for Skyrim SE
Member of the ActiveMagicEffect script
eventOnEffectStart(ActorakTarget, ActorakCaster)

Description

Wiki Description

Event called when the active magic effect has just started on the specified target.

Documentation Comment

Event received when this effect is first started (OnInit may not have been run yet!)


Caveats

CK Wiki - 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.

Parameters

  1. ActorakTarget

    CK Wiki Description

    The Actor this effect was applied to.

  2. ActorakCaster

    CK Wiki Description

    The Actor that cast the spell this effect was from.


Examples

Event OnEffectStart(Actor akTarget, Actor akCaster)
  Debug.Trace("Magic effect was started on " + akTarget)
endEvent

Auto-Generated Example

Scriptname MyCoolScript extends ActiveMagicEffect

event OnEffectStart(Actor akTarget, Actor akCaster)
    Debug.trace("Event received - OnEffectStart: akTarget = " + akTarget + " akCaster = " + akCaster)
endEvent

Related Pages


Additional References

View this event’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.