Home   Help Search Login Register  

Author Topic: How to make time of day selectable  (Read 455 times)

0 Members and 1 Guest are viewing this topic.

SneakyPete

  • Guest
How to make time of day selectable
« 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

Thanatos

  • Guest
Re:How to make time of day selectable
« Reply #1 on: 11 Mar 2004, 14:54:56 »
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

Ronald Speirs

  • Guest
Re:How to make time of day selectable
« Reply #2 on: 02 May 2004, 11:21:20 »
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

SneakyPete

  • Guest
Re:How to make time of day selectable
« Reply #3 on: 04 May 2004, 11:24:17 »
Thanks Ronald,

Nice one mate!