- Found in:
- Dylbills PE
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
ObjectReferenceref
MagicEffectakMagicEffect
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)