Right now I'm trying to set my float CurrentGameTime to GameDaysPassed.Value, yet it keeps returning 0.0. Shouldn't it be a game time or something, like how many days I've been playing this character?
Ultimately I want to set the time I went to sleep in that event onSleepStart in my float LastCoffinSleepTime, and then in my OnUpdate event, add how much time has passed since that time. Obviously I don't have that logic in there yet, as I'm still trying to grasp how to do a timer properly in Skyrim.
Scriptname PlayerVampireNeedsQuestScript extends QuestGlobalVariable Property GameDaysPassed AutoFloat Property LastCoffinSleepTime AutoFloat Property HowLongWithoutCoffinSleep AutoFloat Property CurrentGameTime Auto;prolly need vampire quest extends hereEvent OnInit()RegisterForSingleUpdate(0.1)RegisterForSleep()EndEventEvent OnUpdate()RegisterForSingleUpdate(15);this is definitely secondsCurrentGameTime = GameDaysPassed.Valuedebug.notification("current game time is" +CurrentGameTime)EndEventEvent OnSleepStop(bool abInterrupted)if abInterrupted Debug.Trace("Player was woken by something!") LastCoffinSleepTime = GameDaysPassed.Valueelse Debug.Trace("Player woke up naturally") LastCoffinSleepTime = GameDaysPassed.ValueendIfendEvent
