Jump to content
Sign in to follow this  
MulleDK19

startLoadingScreen seems to freeze scripts and sleep command has no effect

Recommended Posts

Hi.

I'm experimenting with the Loading Screen, and even though the documentations says that scripts will run after showing the screen, they seem to stop.

startLoadingScreen ["Loading something", "RscDisplayLoadMission"];
~1.0
progressLoadingScreen 1;
endLoadingScreen;

It shows, but never hides.

Also

hint "LOL";
sleep 5.0;
hint "YUP"

Will show YUP immediatly when the script is executed (execVM)

Share this post


Link to post
Share on other sites

That's right, between starting and ending such a loading screen you cannot use any suspending of scripts (sleep, waitUntil). These commands were introduced to allow some heavy systems to initialize quickly without script limits. You can do pretty much anything in the scripts, but not use delays.

Share this post


Link to post
Share on other sites
That's right, between starting and ending such a loading screen you cannot use any suspending of scripts (sleep, waitUntil). These commands were introduced to allow some heavy systems to initialize quickly without script limits. You can do pretty much anything in the scripts, but not use delays.

Okay, thanks a lot.

EDIT: Never mind the below quote. It seems to work fine today <.<

Hmm... But what about the last piece of code?

hint "LOL";
sleep 1.0;
hint "YUP";

I tried that in a .sqf script (in this case "init.sqf"), but YUP is shown immediatly and not after 1 second. It works if I use ~1.0 though.

Edited by MulleDK19

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×