Jump to content
Sign in to follow this  
PinBall

Changing 'time of day' from within mission.

Recommended Posts

Can anyone enlighten me on how I can change the time of day and weather conditions from within my mission?

BAS do this at the start of their missions - I think it was the Blackhawk demo, also I've seen it done in other missions from the menu you get when you press your wheel button on your mouse.

Thanks in advance.

Share this post


Link to post
Share on other sites

time setOvercast overcast

Operand types:

   time: Number

   overcast: Number

Type of returned value:

   Nothing

Description:

   Set overcast to given value smoothly during given time (in seconds). Zero time means immediate change. Zero overcast means clear (sunny) weather, with overcast one storms and rain is very likely.

Example:

   1800 setOvercast 0.5

skipTime duration

Operand types:

   duration: Number

Type of returned value:

   Nothing

Description:

   Skip time. Daytime is adjusted, weather change is estimated, no changes in any units are done. Duration is in hours.

Example:

   skipTime 2.5

Hint:

http://www.flashpoint1985.com/docs/comref_102002/data/comref.html

Share this post


Link to post
Share on other sites

Thanks for replying Tarus, but what I want is for the player of the mission to be able to select the time of day (Day or Night) so my mission can be played in either depending on your preference. Adds to the longevity of the mission. Played it in day now try it again at night type senario.

Share this post


Link to post
Share on other sites

You mean to select which time it should be whilst you are playing?

e.g.

Game starts, some dialouge is shown

you click "night"

or "day"?

Share this post


Link to post
Share on other sites

Yep. That way the whole dynamics of the mission change.

Share this post


Link to post
Share on other sites

You have to do dialogues then.

They need to be embedded in description.ext and init of mission.

Check out some BAS missions, unpbo them and see how they did it. It´s far to detailed to be explained here in an appropriate way. Maybe they have some presets at ofpec but I´m not sure.

Share this post


Link to post
Share on other sites

Or you could play it in MP and just add the paramiter, and if param1 = 1 : skiptime 4

for an example.

Share this post


Link to post
Share on other sites
Thanks for replying Tarus, but what I want is for the player of the mission to be able to select the time of day (Day or Night) so my mission can be played in either depending on your preference.  Adds to the longevity of the mission.  Played it in day now try it again at night type senario.

I've seen something like that done in a mission, maybe you'll like this idea, or maybe not, at least it's very easy to do.

Have the player at the beginning of the mission choose a path to take. Like say, if he wants a daytime mission, go immediately to the mission start point. If he wants a night-time mission, go to the barracks (or whatever, it can be anything) and get some sleep, or do some pushups or something.

So if the player walks to path 1, he will just go on as normal, but if he goes to path 2, he will hit a trigger that will advance the time or whatever you want. Make sure you put a fade while the time advances too so it looks like the player did something during that missing time.

Even better, if you know how to use the Addaction command, have that appear when the player hits the trigger and confirm that he really wants to wait 'til nightime.

Share this post


Link to post
Share on other sites

Cheers guys, I'll be cheking it out this weekend.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×