OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bardosy on 29 Aug 2006, 08:42:36

Title: How can I diable a dialog, when cutscene start?
Post by: bardosy on 29 Aug 2006, 08:42:36

I made a cutscene in an UAV mission.
But the player use the UAV and see a monitor with target cross and parameter numbers, menus etc... (I think, this is a dialog). And when my cutscene start, the dialog is still drowing and the cutscene playing IN this "monitor". How can I clear it befor the cutscene start?

I tried the cutRSC ["default","PLAIN"], but it does not work.
Title: Re: How can I diable a dialog, when cutscene start?
Post by: Dinger on 29 Aug 2006, 14:43:29
 closeDialog 0
Title: Re: How can I diable a dialog, when cutscene start?
Post by: bardosy on 29 Aug 2006, 15:19:40
Thanks!

Can I use this, if there is no dialog?

Because the player can use this UAV or not when cutscene start....
Title: Re: How can I diable a dialog, when cutscene start?
Post by: JasonO on 29 Aug 2006, 16:35:45
This command can be used any time, but only works if a dialogue is open. It closes the dialogue. If you want UAV to close at start of each cutscene.. just put   closeDialog 0   at the top of the script
Title: Re: How can I diable a dialog, when cutscene start?
Post by: Mr.Peanut on 30 Aug 2006, 02:25:22
You might also have to open the description.ext and see what the dialog's ID number is.  For example, this is how you can close Kegety's spec script prior to an ending cutscene for an MP mission.
Title: Re: How can I diable a dialog, when cutscene start?
Post by: bardosy on 30 Aug 2006, 08:23:36
Thanks everybody!

I must insert a little wait (~0.5) between closeDialog 0 and camCreate... I don't know why, but it's work. Without delay, the dialog closed and cutscene started, but after a second the cutscene ended...
But now it does work! Thanks again!