C.Project
Member
In your mission.pbo
this means fog from 20 o'clock to 7 o'clock and fog should disapear after 0.9 sec +- the #waittoactivate 0.15 sec. just use my code for example.
in your fogs.sqs
#waittoactivate ~150 is the time to start check for the servertime
Example
Example
Also u need to set time on your server.
for example: [GMT+2]
just put it in your servername and it should work.
Sorry for my english.
Code:
};
class Item4
{
side="LOGIC";
class Vehicles
{
items=1;
class Item0
{
position[]={6742.6514,300.82608,7825.8774};
placement=12000;
special="NONE";
age="ACTUAL";
id=187;
side="LOGIC";
vehicle="Logic";
leader=1;
skill=0.60000002;
init="[this,12000,12000,7,20] exec ""fogs.sqs""";
};
};
in your fogs.sqs
Code:
_height=-2.5
_Rradius=500
_Cloudalpha=1.5
?((Player distance _Center)>_dist1):_Cloudalpha= 1-(((Player distance _Center) - _dist1)/(_dist2- _dist1))
_radius=(random 0.2)+random _Rradius
_angle=(random 360)
_size = 15
_col = 1
_CC=[_col,_col,_col,.7*_Cloudalpha]
drop ["\ca\data\cl_basic", "", "Billboard", 50,50, [(getpos Player select 0)+_radius*(sin(_angle)),(getpos Player select 1)+_radius*(cos(_angle)),_height],[1,1,1],20 , 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<900):goto "loop"
~1
?(count _this == 3): goto "bigloop"
goto "nighttest"
#waittoactivate
~150
goto "nighttest"
Example
Example
Also u need to set time on your server.
for example: [GMT+2]
just put it in your servername and it should work.
Sorry for my english.