thanks for any help.
this is attached to a Quest , start enabled
Scriptname sleepScript extends Questimport Debugbool hasSleptint zEvent OnInit() RegisterForUpdate(5) Debug.MessageBox("Script Init!") EndEvent Event OnSleepStart(float afSleepStartTime, float afDesiredSleepEndTime) hasSlept = true z = 0 Debug.MessageBox("Sleep Started")EndEventEvent OnUpdate() if hasSlept == true Debug.MessageBox("OnUpdate says we slept") hasSlept = False else Debug.Notification("still awake") endif z += 1 Debug.Notification("z = " + z)endEvent