[04/25/2013 - 01:30:03PM] Error: Unable to call RegisterForSingleUpdate - no native object bound to the s
cript object, or object is of incorrect type
stack:
[None].foobar.RegisterForSingleUpdate() - "
[None].foobar.OnEffectStart() - "foobar.psc" Line 7
Scriptname foobar extends ActiveMagicEffect int countEvent OnEffectStart(Actor akTarget, Actor akCaster) count = 0 RegisterForSingleUpdate(2) Debug.TraceUser("test", "OnEffectStart(): RegisterForSingleUpdate")EndEventEvent OnUpdate() count += 1 RegisterForSingleUpdate(2) Debug.TraceUser("test", "OnUpdate(): count:" + count)EndEvent
I am casting this on an NPC. Have I done this wrong? I basically want a 'constant effect' magicEffect that stays on an actor, and does some internal changes every 24 hours.