Ground Fog - Guide

Can someone enlighten me
is this correct?
Code:
                };
            };
        };
        class Item1
        {
            side="LOGIC";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={708.96582,35.858719,3533.1272};
                    id=50;
                    side="LOGIC";
                    vehicle="FunctionsManager";
                    leader=1;
                    lock="UNLOCKED";
                    skill=0.60000002;
                };
            };
        };
       
        class Item2
        {
            side="LOGIC";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={6288.5488,304.98645,7825.8896};
                    id=3;
                    side="LOGIC";
                    vehicle="Logic";
                    leader=1;
                    skill=0.60000002;
                    init="[this, 10000, 10000, 7, 19] exec ""fogs.sqs""";
                };
            };
        };
    };
    class Markers
 
Can someone enlighten me
is this correct?
Code:
                };
            };
        };
        class Item1
        {
            side="LOGIC";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={708.96582,35.858719,3533.1272};
                    id=50;
                    side="LOGIC";
                    vehicle="FunctionsManager";
                    leader=1;
                    lock="UNLOCKED";
                    skill=0.60000002;
                };
            };
        };
     
        class Item2
        {
            side="LOGIC";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={6288.5488,304.98645,7825.8896};
                    id=3;
                    side="LOGIC";
                    vehicle="Logic";
                    leader=1;
                    skill=0.60000002;
                    init="[this, 10000, 10000, 7, 19] exec ""fogs.sqs""";
                };
            };
        };
    };
    class Markers
Looks to be correct
 
is your fog.sqs correct? that looks correct in your mission.sqm - you could try making the z coord be zero not 304
 
I tryed this in many diff ways, trying to get it to work.
I havent gotten any fog to show up yeat. i never had any error Message either doh.

This is my fog.sqs
Code:
_Center = _this select 0
_dist1=_this select 1
_dist2= _this select 2
 
?(count _this > 3):_endNight=_this select 3;_startNight=_this select 4; goto "nighttest"
?(count _this == 3):goto "bigloop"
 
#nighttest
_hours = Date select 3
?((_hours>=_endNight) && (_hours<_startNight)): goto "waittoactivate"
 
#bigloop
@(Player distance _Center)<_dist2
_i=0
#loop
_height=-0.3
_Rradius=180
_Cloudalpha=1
?((Player distance _Center)>_dist1):_Cloudalpha= 1-(((Player distance _Center) - _dist1)/(_dist2- _dist1))
_radius=(random 10)+random _Rradius
_angle=(random 360)
_size = 5
_col = 1
_CC=[_col,_col,_col,.3*_Cloudalpha]
drop ["\ca\data\cl_basic", "", "Billboard", 8+random 1,8+random 1,  [(getpos Player select 0)+_radius*(sin(_angle)),(getpos Player select 1)+_radius*(cos(_angle)),_height],[0,0,0],5 , 0.2, 0.1568, 0,[_size], [[_col,_col,_col,0],_CC,_CC,_CC,_CC,_CC,_CC,[_col,_col,_col,0]], [0],0,0,"", "",""]
_i=_i+1
?(_i<1800):goto "loop"
~1
?(count _this == 3): goto "bigloop"
goto "nighttest"
 
 
 
#waittoactivate
~300
goto "nighttest"

And this is my mission.sqm
Code:
        class Item1
        {
            side="LOGIC";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={708.96582,35.858719,3533.1272};
                    id=50;
                    side="LOGIC";
                    vehicle="FunctionsManager";
                    leader=1;
                    lock="UNLOCKED";
                    skill=0.60000002;
                };
            };
        };
        class Item2
        {
            side="LOGIC";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={6279.4966,304.98645,7825.8896};
                    id=1;
                    side="LOGIC";
                    vehicle="Logic";
                    leader=1;
                    skill=0.60000002;
                    init="[this, 10000, 10000] exec ""fog.sqs""";
                };
            };
        };
    };
    class Markers

So any typos i havent seen:) ?
 
I tryed this in many diff ways, trying to get it to work.
I havent gotten any fog to show up yeat. i never had any error Message either doh.

This is my fog.sqs
Code:
_Center = _this select 0
_dist1=_this select 1
_dist2= _this select 2
 
?(count _this > 3):_endNight=_this select 3;_startNight=_this select 4; goto "nighttest"
?(count _this == 3):goto "bigloop"
 
#nighttest
_hours = Date select 3
?((_hours>=_endNight) && (_hours<_startNight)): goto "waittoactivate"
 
#bigloop
@(Player distance _Center)<_dist2
_i=0
#loop
_height=-0.3
_Rradius=180
_Cloudalpha=1
?((Player distance _Center)>_dist1):_Cloudalpha= 1-(((Player distance _Center) - _dist1)/(_dist2- _dist1))
_radius=(random 10)+random _Rradius
_angle=(random 360)
_size = 5
_col = 1
_CC=[_col,_col,_col,.3*_Cloudalpha]
drop ["\ca\data\cl_basic", "", "Billboard", 8+random 1,8+random 1,  [(getpos Player select 0)+_radius*(sin(_angle)),(getpos Player select 1)+_radius*(cos(_angle)),_height],[0,0,0],5 , 0.2, 0.1568, 0,[_size], [[_col,_col,_col,0],_CC,_CC,_CC,_CC,_CC,_CC,[_col,_col,_col,0]], [0],0,0,"", "",""]
_i=_i+1
?(_i<1800):goto "loop"
~1
?(count _this == 3): goto "bigloop"
goto "nighttest"
 
 
 
#waittoactivate
~300
goto "nighttest"

And this is my mission.sqm
Code:
        class Item1
        {
            side="LOGIC";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={708.96582,35.858719,3533.1272};
                    id=50;
                    side="LOGIC";
                    vehicle="FunctionsManager";
                    leader=1;
                    lock="UNLOCKED";
                    skill=0.60000002;
                };
            };
        };
        class Item2
        {
            side="LOGIC";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={6279.4966,304.98645,7825.8896};
                    id=1;
                    side="LOGIC";
                    vehicle="Logic";
                    leader=1;
                    skill=0.60000002;
                    init="[this, 10000, 10000] exec ""fog.sqs""";
                };
            };
        };
    };
    class Markers

So any typos i havent seen:) ?
yes, you have the fog.sqs for night time fog, yet the mission is set up where fog is there all time around, so switch your last line in mission to [this, 10000, 10000, 7, 19] or switch your fog.sqs to the regular one, hope that helps
 
Ye that was my bad, since i been trying all combinations to get it to work, just got em mixed up when i posted.

I tryed the normal sqs/ diff locations and full map init="[this, 10000, 10000] exec ""fog.sqs""";
And the night fog sqs full map init="[this, 10000, 10000, 7, 19] exec ""fog.sqs""";

Tryed all combinations and still no luck
 
hmm.. did you change items = 3 at the top? other than that it looks to be fine, not sure what is your problem here
 
hmm.. did you change items = 3 at the top? other than that it looks to be fine, not sure what is your problem here

You mean this 1:

Code:
        class Item2
        {
            side="LOGIC";
            class Vehicles
            {
                items=1; <-------------------this 1, change to 3?
                class Item0
                {
                    position[]={6279.4966,304.98645,7825.8896};
                    id=1;
                    side="LOGIC";
                    vehicle="Logic";
                    leader=1;
                    skill=0.60000002;
                    init="[this, 10000, 10000, 7, 19] exec ""fog.sqs""";
 
Does the fog act as a visual modifier for zeds and AI units? At the moment it doesn't appear so. Possibly a calculation that could factor if either or both targets are "in" the fog based on altitude above the ground?
 
It says, script fog.sqs not found.
Any idea why?
Got it in a script folder and the class looks like this:
Code:
class Item18
        {
            side="LOGIC";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={6288.5488,304.98645,7825.8896};
                    id=3;
                    side="LOGIC";
                    vehicle="Logic";
                    leader=1;
                    skill=0.60000002;
                    init="[this, 10000, 10000, 7, 19] exec ""Scripts\fogs.sqs""";
                };
            };
        };


*edit* Works so far. Just need to wait for the spawn.
 
It says, script fog.sqs not found.
Any idea why?
Got it in a script folder and the class looks like this:
Code:
class Item18
        {
            side="LOGIC";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={6288.5488,304.98645,7825.8896};
                    id=3;
                    side="LOGIC";
                    vehicle="Logic";
                    leader=1;
                    skill=0.60000002;
                    init="[this, 10000, 10000, 7, 19] exec ""Scripts\fogs.sqs""";
                };
            };
        };


*edit* Works so far. Just need to wait for the spawn.
fogs.sqs vs fog.sqs - the names are different? might be a typo or how you set it up
 
Back
Top