hi,
I was wondering if it is possible to get localized weather using a trigger. E.g. have a city in thick fog and clear the rest of the server.
From what I've been reading I'd have to set up a trigger:
After this I should set the weather using the called sqf, however this is not working:
foggy.sqf
However, this doesn't work. How would I go about doing this?
I was wondering if it is possible to get localized weather using a trigger. E.g. have a city in thick fog and clear the rest of the server.
From what I've been reading I'd have to set up a trigger:
Code:
class Item10
{
position[]={9615.84,131.63644,11370.1};
a=750;
b=750;
activationBy="ANY";
repeating=1;
interruptable=0;
age="UNKNOWN";
name="foggycit";
expCond="(vehicle player) in thislist;";
expActiv="foggy = [] execVM ""scripts\foggy.sqf"";";
expDesactiv="terminate zomblespawnt;";
class Effects
{
};
};
After this I should set the weather using the called sqf, however this is not working:
foggy.sqf
Code:
setviewdistance 500;
bis_fog = 0.9;
setviewdistance 500;
0 setovercast 0;
0 setrain 0.5;
15 setfog 0.9;
0 setfog bis_fog;
[] spawn {
_delay = 3;
sleep 0.01;
while {true} do {
_delay setovercast 0.5;
_delay setrain 0;
_delay setfog 0.9;
sleep _delay ;
};
};
However, this doesn't work. How would I go about doing this?