Wait in-game and continue the script

Post » Thu Apr 04, 2013 6:05 am

Hi,

If I have three functions, and if I want to wait 8 in-game hours in the 2nd function, but continue the script to complete the 3rd function without waiting, what would be the best way to do that ?

Spoiler

Event OnInit()   function01()   function02()   function03()EndEventFunction function01()   ;first codeEndFunctionFunction function02()   ;second code   WaitGameTime(8)   ;some code casted after the player wait 8 hours EndFunctionFunction function03()   ;third codeEndFunction

Thanks!
User avatar
Juan Suarez
 
Posts: 3395
Joined: Sun Nov 25, 2007 4:09 am

Post » Thu Apr 04, 2013 8:47 am

You want to call the third function before waiting. The script wont pause while its in a wait state, just the function it's in (iirc).
User avatar
Loane
 
Posts: 3411
Joined: Wed Apr 04, 2007 6:35 am


Return to V - Skyrim