donotbugme Posted February 25, 2016 Posted February 25, 2016 I have a script that I want a certain amount of time to elapse before I progress a quest stage. I am using the following script int hoursToWaitUntilAdvanceToStage38 = 24 * 7 Utility.WaitGameTime(hoursToWaitUntilAdvanceToStage38 ) getOwningQuest().SetStage(38) The above code works just fine but I'm just a little concerned leaving a script hanging like that for such a long amount of gameTime. On the Creation Kit wiki it states that it is a latent function which I understand to mean it has no real performance hit or strain on papyrus associated with it. Is there any dangers I should be aware of trying to do it this way. Anyone able to shed experience using this Utility.WaitGameTime(float hours) function?
Guest Posted February 25, 2016 Posted February 25, 2016 All the wait function of papyrus are latent. This means that nothing is executed while the wait is progressing. They are safe, and are the actual best way to "wait". WaitGameTime waits for an amount of time that is considered game time (the parameter is the number of game hours to wait). When the menu are open the time does not pass. WaitMenuMode waits the time in real time seconds when you play or when you are in the menus. Wait waits the time in real time seconds but only when you actually play
donotbugme Posted February 25, 2016 Author Posted February 25, 2016 Great, thanks. I had a pretty solid idea it was alright but with papyrus i'm really hesitant about assuming anything now and didn't want to encounter any obscure errors with papyrus scripts being dumped halfway through.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.