Hey guys, I will be showing you how to add fog to your server that looks like the fog from breaking point DayZ mod. It looks like this.. covering Balota airfield.
To add fog to your server you will need to only need to edit your mission.sqm file and add one more file.
Before I teach you guys how to add fog I need to explain what it is and what it does (might seem like something stupid to do.. but it will help with understanding later) The fog is spawned around a set point. For an example, 4743.666,9,2542.4561 is a point at Balota Airfield where the fog above is spawning.
I will teach you how to spawn/put fog in two different ways.
You place fog on points and it spreads out in a set distance in x and y, so you can place it in certain places on the map. >Airfields, Big cities, Forests
OR you can place one point of fog in the center of the map and have it spread around the whole map.. giving an eerie look where ever you go.
On to what you have to do
First you will need to create a file called fog.sqs and paste this inside of it (I will also attach my fog file for you guys at the bottem.. to make it easier)
Explaining what some values you can edit in here (best to leave them alone.. but are editable if needed)
height - the spawn height of the clouds.. best to have that under zero for the effect of being ground fog..
Pack that into your mission.pbo - you don't need to edit it more.
Now how to place fog around the map!
Method One.
To place fog in packets around the map, so they are only in certain points and not everywhere you open your mission.sqm file scroll all the way down.. past the first class items 0-99 to the next class items starting at class item1 which looks like this at about line 1146 (using notepad++)
AFTER THIS IS WHERE YOU START EDITING FOG*** Posting this to help you guys find where you need to edit - Using cntrl+f or however you go about it
AFTER THE LAST CLOSURE IS WHERE YOU EDIT
Paste that before classmarkers but still in the class items section (looking at mission.sqm you will understand)
That will spawn one set of fog at balota airfield near the ATC tower and one near the industrial hangers (based on coordinates - edit to whatever you want)
class Item1 is the functionsmanager so class item2 and above can be anything
TO EDIT FOG LOCATION/VALUES
Edit the Coordinates based on ARMA 2 COORDS - {X,Z,Y} On where you want the fog to be
id=1 Change that for each set of fog you need to add +1 to each set of fog placements you add so my first fog is id=1 then the second fog is id=2 and so on (3rd fog would be id=3 etc..)
Down to the last bit of code.. where it says [this,100,150] is where you can edit how big the fog is, increasing to how far it spawns. [X,Y]
LAST PART! VERY IMPORTANT
Edit this number based on how much fog you add at the points I showed you above.
Lets say you add 2 spots of fog like I did.
On the top of mission.sqm it says class Groups on line 33 One line below this it says items=2 which accounts for the first classitem 0-99 and the second set which we are editing.
For each placement of fog you add you need to add +1 to that items= If you added 2 fog placement points edit that number to items=4.. if you added 3 fog placements edit that to be items=5 and so on!
Method Two.
If you want to place fog through out the entire map follow this!
You edit under the same values as before ^ follow above
For data points I choose stary since its almost the center
Change your items= to items=3 under class groups ^ addressed above and you are done!
To set a fog trigger to spawn fog during the night only see this post (bottom of the page)
Enjoy
Let me know if you need me to be clearer on any parts of this.. Thanks
I cannot upload a .sqs file so please change it to a .sqs file after you download or make your own shown above!

To add fog to your server you will need to only need to edit your mission.sqm file and add one more file.
Before I teach you guys how to add fog I need to explain what it is and what it does (might seem like something stupid to do.. but it will help with understanding later) The fog is spawned around a set point. For an example, 4743.666,9,2542.4561 is a point at Balota Airfield where the fog above is spawning.
I will teach you how to spawn/put fog in two different ways.
You place fog on points and it spreads out in a set distance in x and y, so you can place it in certain places on the map. >Airfields, Big cities, Forests
OR you can place one point of fog in the center of the map and have it spread around the whole map.. giving an eerie look where ever you go.
On to what you have to do
First you will need to create a file called fog.sqs and paste this inside of it (I will also attach my fog file for you guys at the bottem.. to make it easier)
Code:
_Center = _this select 0
_dist1=_this select 1
_dist2= _this select 2
_height=-0.3
_Rradius=250
#bigloop
@(Player distance _Center)<_dist2
_i=0
#loop
_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
goto "bigloop"
Explaining what some values you can edit in here (best to leave them alone.. but are editable if needed)
height - the spawn height of the clouds.. best to have that under zero for the effect of being ground fog..
Pack that into your mission.pbo - you don't need to edit it more.
Now how to place fog around the map!
Method One.
To place fog in packets around the map, so they are only in certain points and not everywhere you open your mission.sqm file scroll all the way down.. past the first class items 0-99 to the next class items starting at class item1 which looks like this at about line 1146 (using notepad++)
AFTER THIS IS WHERE YOU START EDITING FOG*** Posting this to help you guys find where you need to edit - Using cntrl+f or however you go about it
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;
};
};
};
Code:
class Item2
{
side="LOGIC";
class Vehicles
{
items=1;
class Item0
{
position[]={4743.666,9,2542.4561};
id=1;
side="LOGIC";
vehicle="Logic";
leader=1;
skill=0.60000002;
init="[this,100,150] exec ""fog.sqs""";
};
};
};
class Item3
{
side="LOGIC";
class Vehicles
{
items=1;
class Item0
{
position[]={4838.4629,5.7515168,2328.8635};
id=2;
side="LOGIC";
vehicle="Logic";
leader=1;
skill=0.60000002;
init="[this,100,150] exec ""fog.sqs""";
};
};
};
That will spawn one set of fog at balota airfield near the ATC tower and one near the industrial hangers (based on coordinates - edit to whatever you want)
class Item1 is the functionsmanager so class item2 and above can be anything
TO EDIT FOG LOCATION/VALUES
Edit the Coordinates based on ARMA 2 COORDS - {X,Z,Y} On where you want the fog to be
id=1 Change that for each set of fog you need to add +1 to each set of fog placements you add so my first fog is id=1 then the second fog is id=2 and so on (3rd fog would be id=3 etc..)
Down to the last bit of code.. where it says [this,100,150] is where you can edit how big the fog is, increasing to how far it spawns. [X,Y]
LAST PART! VERY IMPORTANT
Edit this number based on how much fog you add at the points I showed you above.
Lets say you add 2 spots of fog like I did.
On the top of mission.sqm it says class Groups on line 33 One line below this it says items=2 which accounts for the first classitem 0-99 and the second set which we are editing.
For each placement of fog you add you need to add +1 to that items= If you added 2 fog placement points edit that number to items=4.. if you added 3 fog placements edit that to be items=5 and so on!
Method Two.
If you want to place fog through out the entire map follow this!
You edit under the same values as before ^ follow above
For data points I choose stary since its almost the center
Code:
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] exec ""fog.sqs""";
};
};
};
To set a fog trigger to spawn fog during the night only see this post (bottom of the page)
Enjoy
Let me know if you need me to be clearer on any parts of this.. Thanks
I cannot upload a .sqs file so please change it to a .sqs file after you download or make your own shown above!