Background for Skyrim SE
Member of the DbSkseFunctions script
boolfunctionIsMagicEffectActiveOnRef(ObjectReferenceref, MagicEffectakMagicEffect, FormmagicSource=NONE)NativeGlobal

Description

Documentation Comment

is the akMagicEffect currently affecting the ref?
if magicSource is not none, only returns true if the activeMagicEffect matches the akMagicEffect and it's condition status is true and comes from the magicSource (spell, shout, potion ect)
Otherwise, returns true if activeMagicEffect matches the akMagicEffect and it's condition status is true regardless of source.


Parameters

  1. ObjectReferenceref

  2. MagicEffectakMagicEffect

  3. FormmagicSource=NONE


Examples

Auto-Generated Example

ObjectReference myObjectReference__ref
MagicEffect myMagicEffect__akMagicEffect
Form myForm__magicSource

bool returnedValue = DbSkseFunctions.IsMagicEffectActiveOnRef(myObjectReference__ref, myMagicEffect__akMagicEffect, myForm__magicSource)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.