OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ahmed117 on 03 Feb 2012, 10:02:58

Title: [SOLVED] How to change Timing and weather of a mission or Intro?
Post by: ahmed117 on 03 Feb 2012, 10:02:58
Guys, I was wondering when I played some remarkable missions, I noticed that the timing and weather of that mission was changing frequently, so I thought to apply this thing in my mission, But how it is possible..? Let me explain you:

As an example: we have a mission in which we are showing an Intro, In that Intro we are showing two scenes in first scene there is morning and clear weather, but in the second scene after "black out" there is night with heavy rain...  

so how can we do this, I would be very thankful if any one can tell me about this...  :scratch:
Title: Re: How to change Timing and weather of a mission or Intro?
Post by: Gruntage on 03 Feb 2012, 10:08:48
Code: [Select]
skiptime _lengthoftime
That command is used to 'skiptime' in a mission. _lengthoftime is replaced with number hours (.5 for 30 minutes)

Code: [Select]
0 setovercast 1
...will make the weather cloudy. 0 for transition time, and 1 for severity of weather

Code: [Select]
0 setfog 1
...same as above, only for fog

Hope that helps

Code: [Select]
0 setrain 1
same as above, only for rain

Hope that helps
Title: Re: How to change Timing and weather of a mission or Intro?
Post by: ahmed117 on 03 Feb 2012, 15:00:39
Sir, can you teach me how to use rain, I successfully applied the skip time command, and it really worked, but I am facing problems with the rain, please can you tell me that how do I use the heavy rain in Intro script?
Title: Re: How to change Timing and weather of a mission or Intro?
Post by: Gruntage on 03 Feb 2012, 15:28:02
If you want heavy rain to appear during a certain length of time you'll need to do something like this:

Code: [Select]
5 setrain 1
This creates the heaviest amount of rain within 5 seconds. The first number represents how long it takes for the level of rain (in this case '1') to appear. 1 is the heaviest amount of rain, 0.5 is a moderate amount of rain.