Background for Skyrim SE
Member of the DbSkseEvents script
eventOnEffectFinishGlobal(ActorCaster, ActorTarget, MagicEffectakEffect, Formsource, intcastingSource, floatelapsedSeconds, floatelapsedGameHours)

Description

Documentation Comment

Like ActiveMagicEffect OnEffectFinish
Triggers when the akEffect becomes inactive or finishes on the Target.
Source could be a spell, enchantment, potion, ingredient ect. The magic item that applied the akEffect.
For castingSource:
;LeftHand = 0,
RightHand = 1,
Other = 2, (most likely shout)
Instant = 3
elapsedSeconds is that amount real time seconds since the effect was last started on the Target. Time spent in menus is counted.
elapsedGameHours is the amount of game hours elapsed since the effect was last started on the Target.


Parameters

  1. ActorCaster

  2. ActorTarget

  3. MagicEffectakEffect

  4. Formsource

  5. intcastingSource

  6. floatelapsedSeconds

  7. floatelapsedGameHours


Examples

Auto-Generated Example

Scriptname MyCoolScript extends DbSkseEvents

event OnEffectFinishGlobal(Actor Caster, Actor Target, MagicEffect akEffect, Form source, int castingSource, float elapsedSeconds, float elapsedGameHours)
    Debug.trace("Event received - OnEffectFinishGlobal: Caster = " + Caster + " Target = " + Target + " akEffect = " + akEffect + " source = " + source + " castingSource = " + castingSource + " elapsedSeconds = " + elapsedSeconds + " elapsedGameHours = " + elapsedGameHours)
endEvent
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.