GetActiveMagicEffectFromActor - ANDR PapyrusFunctions

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: ANDR_PapyrusFunctions Script

Gets an Active Magic Effect instance from the specified actor.

Syntax[edit | edit source]

ActiveMagicEffect Function GetActiveMagicEffectFromActor(Actor akActor, MagicEffect akMagicEffect) global native

Examples[edit | edit source]

;get the remaining duration of the Fortify Alteration active magic effect instance on the player.

ActiveMagicEffect RelevantAME = ANDR_PapyrusFunctions.GetActiveMagicEffectFromActor(PlayerRef, AlchFortifyAlteration)

If RelevantAME
    Float RemainingTime = (RelevantAME.GetDuration() - RelevantAME.GetTimeElapsed())
    debug.notification("The player has " + RemainingTime + " seconds remaining on their fortify alchemy effect.")
EndIf

Parameters[edit | edit source]

Return Value[edit | edit source]

The ActiveMagicEffect instance of the specified MagicEffect on the Actor.

See Also[edit | edit source]