OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: raggy99 on 23 Jan 2004, 06:10:28

Title: Rain
Post by: raggy99 on 23 Jan 2004, 06:10:28
How do i make it rain on my rescue mission

if posible a thunder storm but heavy rain would be ok.

Thanks in advance
Title: Re:Rain
Post by: Artak on 23 Jan 2004, 07:28:14
time setrain amountofrain

time is the time in seconds in which the weather will smoohtly change to the given value.
setrain being the command.
amountofrain is the value from 0 to 1. 0 no rain. 1 max  rain.

You will also have to have some clouds in order for the setrain command to work.

time setovercast amountofclouds

time again in seconds
setovercast, the command.
amountofclouds is the value from 0 to 1. again 0 no clouds and 1 max clouds.
If I remember correctly the value of setovercast must be above 0.7 for the rain to start falling (maybe it's 0.8).

All of these commands and more (like the setfog) can be found in the official command reference. www.ofpec.com/editors/ references section.
Title: Re:Rain
Post by: raggy99 on 23 Jan 2004, 08:38:10
is there an easier way

thanks anyway
Title: Re:Rain
Post by: jepo on 23 Jan 2004, 10:04:26
there is no easier way really
but i'll give u an example
make a trigger
and put this in the on activation field

0 setrain 1;0 setovercast 1

this will give u heavy rain and lots of clouds

i also reckon u should download CAT_SHIT_ONE's weather effects but i cant remember where i downloaded it ::)
Title: Re:Rain
Post by: Artak on 23 Jan 2004, 10:11:06
Of course you can change the weather default settings in the editor you can do it, but if you want to keep changing the weather mid in your mission, you have to use the commands. And this IS the easiest way, nothing hard about it.
The weather settings can be found in the editors top right corner. Click on the small window there. It's the same window where you can adjust the side which resistance is friendly to and the time and description..
Title: Re:Rain
Post by: deaddog on 23 Jan 2004, 15:06:57
is there an easier way

thanks anyway

Maybe you should consider just playing the game and not editing.
Title: Re:Rain
Post by: headshot_snipe on 23 Jan 2004, 15:23:02
that aint encouraging, or however you spell it :P
Be nice, i guess he just strated editing...   ::)

Title: Re:Rain
Post by: DBR_ONIX on 23 Jan 2004, 22:34:52
Make sure you have the Trigger as activated my Anyone.. Or put it in one of the units Init feild..
Just making sure :)
 - Ben
Title: Re:Rain
Post by: The-Architect on 25 Jan 2004, 08:41:28
0 setrain 1; o setovercast 1; osetfog1

There can't be any easier way can there? ::)