PDA

View Full Version : Single mission restart



Fusion_Marduc
Aug 23 2010, 18:04
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

Fusion_Marduc
Sep 17 2010, 07:51
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.