Results 1 to 3 of 3

  Click here to go to the first Developer post in this thread.  

Thread: startLoadingScreen seems to freeze scripts and sleep command has no effect

  1. #1

    startLoadingScreen seems to freeze scripts and sleep command has no effect

    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.

    Code:
    startLoadingScreen ["Loading something", "RscDisplayLoadMission"];
    ~1.0
    progressLoadingScreen 1;
    endLoadingScreen;
    It shows, but never hides.


    Also
    Code:
    hint "LOL";
    sleep 5.0;
    hint "YUP"
    Will show YUP immediatly when the script is executed (execVM)

  2.   This is the last Developer post in this thread.   #2
    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.
    Bohemia Interactive
    Arma 3 - Project Lead
    Watch us, tweet us, poke us

    Take On Helicopters - Project Lead
    Take On Noisecontrollers!

  3. #3
    Staff Sergeant
    Join Date
    May 3 2009
    Location
    Denmark
    Posts
    375
    Author of the Thread
    Quote Originally Posted by DnA View Post
    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?

    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.
    Last edited by MulleDK19; Jun 6 2009 at 11:36.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •