(08-18-2014, 06:00 PM)Alwarren link Wrote: .................
if (isServer) then {
 [] spawn { sleep <time in seconds until weather changes>; execVM "weatherCHange.sqf";};
};
i.e. only run it on the server, and rely on the weather synchronization.
IF you require a local effect (like, playing sound effects), things get a bit more complicated but not too much. In that case I would use
......
Thanks a lot mate, i wasted a lot of time trying to learn how to deal with weather issue. I'll test your solution tomorrow.
BTW, any suggestions about the timer, should i use a public variable that will become false so the timer doesn't run again on JIP?