Jump to content

[Script] Help Understanding Utility


donotbugme

Recommended Posts

Posted

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?
 
 
 
 
Posted

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

 

Posted

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.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...