Jump to content

RegisterForUpdate....maybe?


chrik87

Recommended Posts

So I just started messing about with CK this weekend and am submerging myself in the sea of pain that is scripting today, and for the life of me I can't get the simplest things to work...RegisterForUpdate() and GetValue() / SetValue()

 

I'm sure its just something stupid I'm doing but if anyone had the time to point out my mistakes then I might actually get to sleep tonight!

Event OnEffectStart(Actor akTarget, Actor akCaster)
	Chk()
EndEvent

Function Chk()
	RegisterForUpdate(5.0)
	Debug.MessageBox("Called")
EndFunction

Event OnUpdate()
	Debug.MessageBox("Update")
EndEvent

The function is being called as the message pops up saying "Called" but the update doesn't seem to register.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...