OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: supershooter on 05 Apr 2005, 20:55:23

Title: set weather (fog)
Post by: supershooter on 05 Apr 2005, 20:55:23
Hi

I have just downloaded midship island from www.ofp.info. The island is small and detailed, so to make it work I have to set the fog to certain level, this is what the readme says:

Settings : As lag increases with reduced cell size, the parameters
for fog and the view-slantrange are to be set as follows:

setviewdistance   141.4
fog (weather)   12/16
fog (forecast)   12/16

Can some one help beacuse this island looks pretty cool.

-supershooter
Title: Re:set weather (fog)
Post by: RujiK on 05 Apr 2005, 21:30:46
Code: [Select]
0 setfog 0.75First number is the time it takes to set the fog (For fog roling in effect) and the second is the amount of fog. 1=complete fog.

Or
Quote
setviewdistance 500

This will make something simular to fog however its more of how good your units eyes are and doesnt make it look foggy.
Title: Re:set weather (fog)
Post by: Pilot on 05 Apr 2005, 21:40:24
I think what they are talking about are the sliders in the intel box.  Load up the island in the mission editor.  In the upper right hand corner, there is a box.  Click it.  A popup should appear.  Towards the bottom should be four sliders.  You will notice on each slider there are sixteen setting lines.  The first slider decides the weather, place this where you want it.  The second one decides fog.  Place this slider anywhere from the 12th to the 16th line to the right..  The third slider should look like the first one, and the fourth slider should look like the second one.  Hit preview.  As soon as the game is ready, hit escape-options-video settings.  Once there, you should see a slider that says visibility.  Move this all the way to the left.  You should now be ready to use the island.

I hope that helps you.  If my instructions are unclear, say so and I will try to clarify.

EDIT:
Beaten again, although Rujik's way requires an init file, mine doesn't.
Title: Re:set weather (fog)
Post by: Wadmann on 05 Apr 2005, 22:13:18
Quote
although Rujik's way requires an init file

You can place a gamelogic on the map and put the fog code (positive about this one), and maybe even the viewdistance code (not sure about this one) in the init line.

Wadmann
Title: Re:set weather (fog)
Post by: Morglor9 on 06 Apr 2005, 00:00:04
you can also use setfog in a trigger. i did this once for a jungle mission: player enters jungle, fog turns on. player leaves jungle, fog turns off.
Title: Re:set weather (fog)
Post by: RujiK on 06 Apr 2005, 04:02:44
setviewdistance can also be used in a trigger, it just looks really dumb.
Title: Re:set weather (fog)
Post by: Pilot on 06 Apr 2005, 04:26:04
Oh, well I learned something new!  You may want to go with Rujik's way as his way is much easier. 8)