adding a fog script

Hi,

I want to use rockhount/yac fog script. I got the fog.fsm and this is the command I need to run:

null=[player,100,11,30,3,7,-0.3,0.1,0.5,1,1,1,13,12,15,false,2,2.1,0.1,1,1,0,0,24] execFSM "Fog.fsm"


So where do i put the fsm? And where do I put that bit of code? (It should only run clientside)
Cheers.
 
going by the read me you could either use

In your mission

Code:
side="LOGIC";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={15713.264,6.3601398,14246.18};
                    special="NONE";
                    id=235;
                    side="LOGIC";
                    vehicle="Logic";
                    leader=1;
                    skill=1;
                    init="0=[player,200,10,10,3,6,-0.3,0.1,0.3,1,1,1,30,10,15,true,0.4,0.5,0.025,0,0,0,0,24] execFSM ""Fog.fsm""";
                };
            };
        };

or in your ini something like

Code:
_isFoggy = (paramsArray select 1);
if (_isFoggy == 1) then { [player,100,7,10,3,7,-0.3,0.1,0.5,1,1,1,13,12,15,true,0,0,0,0,0,0,0,24] execFSM "Fog.fsm" };

Just did a little search on the fog script and found this, the ground fog looks pretty awesome. Might have to look into it myself. The second one is on co op and it seems to run ok .. hmmm


 
i tried putting this in the mission.ini

Code:
class Item3
        {
            side="LOGIC";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={342.74603,83.3041,3876.0796};
                    id=102;
                    side="LOGIC";
                    vehicle="BIS_Effect_MovieNight";
                    leader=1;
                    lock="UNLOCKED";
                    skill=0.60000002;
                    text="fog_surrogate";
                    init="0=[player,200,10,10,3,6,-0.3,0.1,0.3,1,1,1,30,10,15,true,0.4,0.5,0.025,0,0,0,0,24] execFSM ""Fog.fsm""";
                };
            };
        };

didnt work.

the init command needs to be attached to the player but because of the spawn system there is no player object in the map.

I dont know what im doing so if you get this to work please let me know.

Cheers
 
There are about 100 player objects on the map ;-) If you are using Chernorus, look at the upper left corner.

Anyways i´m testing it since days and haven´t got it to work too. I´ve placed game logics, have modified the "player" objects and have tried both versions :

null=[player,100,11,30,3,7,-0.3,0.1,0.5,1,1,1,13,12,15,false,2,2.1,0.1,1,1,0,0,24] execFSM "Fog.fsm" and

null=[this,100,11,30,3,7,-0.3,0.1,0.5,1,1,1,13,12,15,false,2,2.1,0.1,1,1,0,0,24] execFSM "Fog.fsm"

No success..... what i have noticed is that when i use it in the "this" way i have normal fog all around my character. I had it two times right after login but this could be a coincidence too.

Would also appriciate if someone more experienced could try to get it to work.

Research at the BIS-boards and Google hasn´t brought any clue. In SP-mode everythings working fine. Maybe there is a collision with some code-routines from within DayZ (maybe the weather-script) ?
 
if you add setviewdistance XXXX; to your missions init.sqf you can create the cloudy end fog that is at the end of your vision line, if you add player localized fog, which if i remember correctly the posted one is only player side, it should add to the effect,
 
Back
Top