Jump to content
Sign in to follow this  
Fusion_Marduc

Single mission restart

Recommended Posts

Hi,

I created a mission in which the init.sqs calls init_gametype.sqf. In this script a dialog is shown in which a gametype can be selected. From there on all other stuff runs. Everything works fine except for one thing I have no clue about.

When the player dies the standard dialog with RESTART/SUSPEND pops up. My issue is about the restart. Is the init.sqs executed again after restart? It seems not because the dialog from init_gametype.sqf is not shown.

Any ideas how to handle RESTART correctly.

Thanks,

Marduc

Share this post


Link to post
Share on other sites

Hi, the issue is solved. It seemed that not everthing initializes quickly enough after pressing restart. The dialog return value was true but it didn't show. I placed a 'sleep 1;' before the creation of the dialog and now it works.\

Case closed.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×