SpreadTheBlood
Member
Is it possible to get ground fog on the Namalsk map?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
};
};
};
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 correctCan 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
hmm... for somehow, it doesnt workLooks to be correct
I'll try that later tonight, thank you!is your fog.sqs correct? that looks correct in your mission.sqm - you could try making the z coord be zero not 304
_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"
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
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 helpsI 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?
hmm.. did you change items = 3 at the top? other than that it looks to be fine, not sure what is your problem here
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""";
at the top, around line 37 from items=2 to items=3
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""";
};
};
};
fogs.sqs vs fog.sqs - the names are different? might be a typo or how you set it upIt 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.