RegisterForSingleUpdate - no native object bound

Post » Fri Apr 26, 2013 1:33 am

I have a script, which gives me this error:

[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() - "" Line ?
[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.
User avatar
Code Affinity
 
Posts: 3325
Joined: Wed Jun 13, 2007 11:11 am

Return to V - Skyrim