OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: Fusion_Marduc on 22 Apr 2010, 20:41:28

Title: Moving while dialog is shown
Post by: Fusion_Marduc on 22 Apr 2010, 20:41:28
Hi,

I found a similar topic from a year ago but there never was a reaction on that one so I started this new one.

On biki I read "Dialogs are parent containers for the actual controls it contains. Their definition contains several properties on the controls it contains, how the dialog can be addressed, and whether or not the player is able to continue regular movement while the dialog is shown.".

Well, I want to gain that the player is able to continue moving while the dialog is show but I can't find how to do it.

Does anyone know what property to set.

Regards,

Fusion_Marduc


***ANSWER***

Hi,

You can use cutRsc or cutObj to achieve this to instantiate the dialog instead of createDialog. The only downside seems to be that one can not set control value with for example ctrlSetText.

Grtz,

Fusion_Marduc

Title: Re: Moving while dialog is shown
Post by: savedbygrace on 11 Jul 2012, 01:07:51
Code: [Select]
enableSimulation = true; Source (http://community.bistudio.com/wiki/Dialog_Control#Dialogs_and_Displays) is listed on the "Properties" table under Dialog.
Title: Re: Moving while dialog is shown
Post by: ModestNovice on 05 Aug 2012, 21:11:10
enableSimulation just keeps the game/environment running while the dialog is open. Setting enableSimulation to false will simply 'freeze' the game for the player only while the dialog is open.

To modify a value on your dialog, just use this:
Code: [Select]
(findDisplay DLG_IDD) displayCtrl (CTRL_IDC) ctrlSetText "This is my text.";