GetActiveMagicEffectFromActor - ANDR PapyrusFunctions
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 nativeExamples[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.")
EndIfParameters[edit | edit source]
- akActor: The Actor to get the ActiveMagicEffect from.
- akMagicEffect: The MagicEffect to get the ActiveMagicEffect (its instance) from.
Return Value[edit | edit source]
The ActiveMagicEffect instance of the specified MagicEffect on the Actor.