This forum's been a huge help so far, so let's try another question...Is it necessary to unregisterForUpdate when a magic effect finishes? My mod is working fine, but when I look at the Papyrus log after it's been running, there is a repeating error:
[09/18/2015 - 10:34:41PM] Error: Unable to call UnregisterForUpdate - no native object bound to the script object, or object is of incorrect type
stack:
[None].aboDamageScaleNPC.UnregisterForUpdate() - "<native>" Line ?
[None].aboDamageScaleNPC.OnEffectFinish() - "aboDamageScaleNPC.psc" Line 36This script is a MagicEffect script that looks basically like:
Scriptname aboDamageScaleNPC extends activemagiceffect
Event OnEffectStart(Actor akTarget, Actor akCaster)
STUFF
RegisterForSingleUpdate(0.25)
EndEvent
Event OnUpdate()
STUFF
RegisterForSingleUpdate(1)
EndEvent
Event OnEffectFinish(Actor akTarget, Actor akCaster)
STUFF
if self != none
UnregisterForUpdate()
endif
EndEventI tried it with and without the self != none, but neither made a difference. Should I just leave the unregister out? After the effect is finished, will the script not execute the next time single update is called?