Help with loading screen
by Spencer Strombotne · in General Discussion · 08/14/2008 (10:16 am) · 8 replies
I have it right now that the mission loads at the MainMenuGui and has the progressbar on the main menu. As soon as the mission is done downloading the mission automatically starts. I want to have it so that after the mission finishes loading, a button appears that a player can click to start the mission. How would I go about doing this?
About the author
#2
08/14/2008 (10:37 am)
I got the button to appear but couldn't get the button to work.
#3
08/14/2008 (10:51 am)
What command you've given to the button?
#4
08/14/2008 (10:53 am)
Command = "startMission();onClientEnterGame();";
#5
$myClient.startMission();$myClient.onClientEnterGame();
from the button.
08/14/2008 (11:02 am)
It wont work because these functions are called from reference of %client, you can see in my above post. So in the serverCmdMissionStartPhase3Ack(%client, %seq) assign the %client to a global variable like $myClient and call those function as $myClient.startMission();$myClient.onClientEnterGame();
from the button.
#6
08/14/2008 (11:14 am)
I've just tested it now and it works so fine. What about yours?
#7
08/14/2008 (11:21 am)
Yep, works thank you again for your help
#8
08/14/2008 (11:28 am)
Nice... glad to help you
Sailendu Behera
%client.startMission();
%client.onClientEnterGame();
it starts the game, you can comment them and put a button appear function there, and when the button is pressed, call these functions to start the mission. I haven't tested in though, but it should work.