Background for Fallout 4
Member of the ActiveMagicEffect script
eventOnEffectFinish(ActorakTarget, ActorakCaster)

Description

Wiki Description

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

Documentation Comment

Event received when this effect is finished (effect may already be deleted, calling
functions on this effect will fail)


Caveats

CK Wiki - Notes

  • 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.

Parameters

ActorakTarget

CK Wiki Description

The Actor this effect just finished on.

ActorakCaster

CK Wiki Description

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

Auto-Generated Example

Scriptname MyCoolScript extends ActiveMagicEffect

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

Related Pages


Additional References

View this event’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.