- Found in:
- Dylbills PE
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
ActorCaster
ActorTarget
MagicEffectakEffect
Formsource
intcastingSource
floatelapsedSeconds
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