manage_weather.sqf 316 B

123456789
  1. waitUntil { !isNil "chosen_weather" };
  2. while { true } do {
  3. 3600 setOvercast chosen_weather;
  4. if ( overcast < 0.75 ) then { 2 setRain 0 };
  5. if ( overcast >= 0.75 && overcast < 0.95 ) then { 2 setRain 0.1 };
  6. if ( overcast >= 0.95 ) then { 2 setRain 0.2 }; // Removed heavy rain due to severe fps issues
  7. sleep 5;
  8. };