» Tue Nov 20, 2012 2:45 pm
It's similar to RegisterForUpdate--you can attach it to many different types of object. You could have it in a quest script, a script attached to a reference alias, a script attached to an object, etc. It depends on what exactly you're trying to do and how you've arranged your quest. From what you wrote, maybe put the OnSleepStop event in a quest script, and then use kmyQuest.RegisterForSleep() in a quest stage fragment. But that's just one possibility.
Just remember that like RegisterForUpdate, you should UnregisterForSleep when you're done, or when you detect that your mod is uninstalled.