OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SneakyPete on 11 Mar 2004, 14:45:21
-
Can anyone advise me how to do this. I have seen it done before from within the mission. The player can select the time of day.
Makes a mission playable again if you change light to dark etc.
Thanks
-
ive only seen it done in mp missions
put this in description ext
///////////////////////////////
titleParam2="Time";
valuesParam2[]={0,14};
defvalueParam2=0;
textsParam2[]={"Dawn","Dusk"};
///////////////////////////////
14 been the diference in hours between times
or for another dusk option
///////////////////////////////
titleParam2="Time";
valuesParam2[]={0,4,12};
defvalueParam2=0;
textsParam2[]={"Dawn","day","Dusk"};
///////////////////////////////
also in youre init file put
skiptime param2
dunno if this is what youre after
-
I've also made something like that.
When the mission starts, a dialog appears for the player to choose between dawn, day, dusk or night.
I used Razorwings18 Dialog Maker to create this dialog menu. Just follow his tutorial to get the grips on how to make a dialog. It is very simple.
Double clicking on a dialog opens the 'properties' screen where you can find the 'ACTION' field.
First solution:
My mission starts at 16h15 (set from within the OFP editor). I've created four buttons. The first called 'DAY' doesn't change anything (I only put CloseDialog 0 in the Action field of this button to close the dialog menu). For the button called 'DUSK' I have put in: "SkipTime 2; CloseDialog 0". This makes the time jump forward 2 hours and close the dialog menu.
You can do something similar for the buttons 'DAWN': SkipTime 13 and 'NIGHT': SkipTime 6.
Second solution:
You could also make a dialog with two buttons:
In the Action field you could add "SkipTime 1" so each time this button is pressed, the time jumps 1 hour.
A second button could be created to close the dialog menu.
An example of the first solution will be implemented in my 'Take the Airport' mission version 2.0 which will be released soon under pending missions.
In each case, the possibilities to change time, weather, fog... using dialog menus are endless ;D.
Cheerio.
Ronald Speirs
101 Airborne Division
506 Infantry Regiment
Easy-Company
-
Thanks Ronald,
Nice one mate!