Jump to content

[Script] Help Understanding Utility


donotbugme

Recommended Posts

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?
 
 
 
 
Link to comment

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

 

Link to comment

Archived

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

  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use