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

Description

Documentation Comment

if magicSource is not none, only dispels effects that come from the magicSource (spell, shout, potion ect)
Otherwise, dispels all activeMagicEffects that match the akMagicEffect


Caveats


Parameters

ObjectReferenceref

MagicEffectakMagicEffect

FormmagicSource=NONE


Examples

Auto-Generated Example

ObjectReference myObjectReference__ref
MagicEffect myMagicEffect__akMagicEffect
Form myForm__magicSource

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