Arma 3
How to create dynamic weather in editor?
I want dynamic weather in my mission but module "weather" doesn't work for me. Is there any solution how could i create it in vanila version or some mod in workshop?
< >
Showing 1-4 of 4 comments
IM SORRY BUFFALO Jan 22, 2018 @ 4:11pm 
you could do something like this, change rain/overcast and other things to how you want. change the sleep time to change how frequently you want it to change and so on and so on.

while {true} do { _weather = [1, 2, 3, 4]; if (_weather == 1) then { 240 setOvercast 1; 360 setRain 1; 15 setFog 1; }; if (_weather == 2) then { 240 setOvercast 1; 360 setRain 1; 15 setFog 0.5; }; if (_weather == 3) then { 240 setOvercast 0; 360 setRain 1; 15 setFog 0.2; }; if (_weather == 4) then { 240 setOvercast 1; 360 setRain 0; 15 setFog 1; }; sleep 600; };
Originally posted by IM SORRY BUFFALO:
you could do something like this, change rain/overcast and other things to how you want. change the sleep time to change how frequently you want it to change and so on and so on.

while {true} do { _weather = [1, 2, 3, 4]; if (_weather == 1) then { 240 setOvercast 1; 360 setRain 1; 15 setFog 1; }; if (_weather == 2) then { 240 setOvercast 1; 360 setRain 1; 15 setFog 0.5; }; if (_weather == 3) then { 240 setOvercast 0; 360 setRain 1; 15 setFog 0.2; }; if (_weather == 4) then { 240 setOvercast 1; 360 setRain 0; 15 setFog 1; }; sleep 600; };

Where should i past this code? I tried to past it in trigger "On Activation" and it shows error "General Error, error in expression"
IM SORRY BUFFALO Jan 22, 2018 @ 5:32pm 
Originally posted by Crust_Sludgevich_Noisov:
Originally posted by IM SORRY BUFFALO:
you could do something like this, change rain/overcast and other things to how you want. change the sleep time to change how frequently you want it to change and so on and so on.

while {true} do { _weather = [1, 2, 3, 4]; if (_weather == 1) then { 240 setOvercast 1; 360 setRain 1; 15 setFog 1; }; if (_weather == 2) then { 240 setOvercast 1; 360 setRain 1; 15 setFog 0.5; }; if (_weather == 3) then { 240 setOvercast 0; 360 setRain 1; 15 setFog 0.2; }; if (_weather == 4) then { 240 setOvercast 1; 360 setRain 0; 15 setFog 1; }; sleep 600; };

Where should i past this code? I tried to past it in trigger "On Activation" and it shows error "General Error, error in expression"
in a sqf file and run it on the server, it may need to be executed on all clients but im not sure on that
Ah i see. Thank you. I'll try this.
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Jan 22, 2018 @ 3:11pm
Posts: 4