im working on dayz CC 1.8.3 server.
I wanted to spawn fog all over the map
from 19:00 till 7:00
fog NEVER appaers ..
my mission.sqm
by default looks like this :
Code:#include "\z\addons\dayz_code\system\mission\mission.sqm"
if someone of you got this script working on 1.8.3 chernarus please send me your files
Cheers andrew for replying. Is it possible to be slightly more specific about what I haven't done correctly?
Code:}; class Groups { items=9; class Item0 {
Code:class Item1 { side="LOGIC"; class Vehicles { items=1; class Item0 { position[]={8810.7705,138.52499,11751.518}; id=50; side="LOGIC"; vehicle="FunctionsManager"; leader=1; lock="UNLOCKED"; skill=0.60000002; }; }; }; class Item2 { side="LOGIC"; class Vehicles { items=1; class Item0 { position[]={8246.3184,9,15485.867}; id=1; side="LOGIC"; vehicle="Logic"; leader=1; skill=0.60000002; init="[this,20000,20000, 19, 7] exec ""fog.sqs"""; }; }; }; class Item3 { side="LOGIC"; class Vehicles { items=1; class Item0 { position[]={15506.952,5.7515168,13229.368}; id=2; side="LOGIC"; vehicle="Logic"; leader=1; skill=0.60000002; init="[this,20000,20000, 19, 7] exec ""fog.sqs"""; }; }; }; class Item4 { side="LOGIC"; class Vehicles { items=1; class Item0 { position[]={12399.751,5.7515168,5074.5273}; id=3; side="LOGIC"; vehicle="Logic"; leader=1; skill=0.60000002; init="[this,20000,20000, 19, 7] exec ""fog.sqs"""; }; }; }; class Item5 { side="LOGIC"; class Vehicles { items=1; class Item0 { position[]={10398.626,5.7515168,8279.4619}; id=4; side="LOGIC"; vehicle="Logic"; leader=1; skill=0.60000002; init="[this,20000,20000, 19, 7] exec ""fog.sqs"""; }; }; }; class Item6 { side="LOGIC"; class Vehicles { items=1; class Item0 { position[]={5149.9814,5.7515168,4864.1191}; id=5; side="LOGIC"; vehicle="Logic"; leader=1; skill=0.60000002; init="[this,20000,20000, 19, 7] exec ""fog.sqs"""; }; }; }; class Item7 { side="LOGIC"; class Vehicles { items=1; class Item0 { //test spawn on my char position[]={18444.3,5773.45,8.08704}; id=6; side="LOGIC"; vehicle="Logic"; leader=1; skill=0.60000002; init="[this,20000,20000, 19, 7] exec ""fog.sqs"""; }; }; }; class Item8 { side="LOGIC"; class Vehicles { items=1; class Item0 { position[]={2122.7954,5773.45,7807.9878}; id=7; side="LOGIC"; vehicle="Logic"; leader=1; skill=0.60000002; init="[this,20000,20000, 19, 7] exec ""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 = 20 _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 "[B][COLOR=#ff0000]nighttest[/COLOR][/B]"
For Ganeski - You have to pull the file from the dayz code which is linked to you in the mission.sqm. Basically pull that one and edit it to the first post and you should be good to go..
As for vikingr you have a simple problem here..
#waittoactivate
~300
goto "nighttest"
Just replace the goto "nighttest" line with goto "nighttest"
This is basically your problem because it has forum color codes in it because it is red..
(this is the line non red - goto "[B.][COLOR..=#ff0000]nighttest[/..COLOR][/..B]" )
it should be
goto "nighttest"
Its a mistake many make because in that post he is showing you where to put it, just gotta watch out, basically remove that and you should be good to go! Let me know if this works for you and post back if you need any further help