Jump to content

OnInit() and OnUpdate() help


Archey6

Recommended Posts

So this is my code

 

Scriptname Success extends quest

Event OnInit()
   RegisterForUpdate(2)
EndEvent

Event OnUpdate()
   Debug.MessageBox("Success!!")
EndEvent

 

what I'm trying to do is have a message show saying "success" every 2 seconds, but this isn't working, i'm not sure what else i can do.

Link to comment
Share on other sites

If this script is the main script of a quest that is game-start enabled (and more often not it doesn't even need to be game start enabled :confused: ) it should work like you expect it to.
Link to comment
Share on other sites

If this script is the main script of a quest that is game-start enabled (and more often not it doesn't even need to be game start enabled :confused: ) it should work like you expect it to.

 

you're saying i have to attach the script to a quest?

Link to comment
Share on other sites

Yes, attach it to a script and check the 'Game Start Enabled' box. Fair warning: Make the new quest first and allow it to be created with a new ID, then open it back up and attach your script.
Link to comment
Share on other sites

  • Recently Browsing   0 members

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