Scriptname _00E_EnDisObjectsOnTriggerEnter extends ObjectReference ObjectReference Property ObjectRef Auto Actor Property PlayerREF Auto GlobalVariable Property GameHour Auto GlobalVariable Property TimeScale Auto int doOnce int GameHourInt Event OnTriggerEnter(ObjectReference akActionRef) if akActionRef == PlayerREF ObjectRef.Enable() if doOnce == 0 TimeScale.SetValue(2000) while GameHourInt < 21 GameHourInt = GameHour.GetValueInt() ;Debug.Notification("GameHourSet") endwhile if GameHourInt == 21 TimeScale.SetValue(0.1) endif else return endif endif EndEvent Event OnTriggerLeave(ObjectReference akActionRef) if akActionRef == PlayerREF ObjectRef.Disable() endif EndEvent