ACE3/addons/weather/XEH_postServerInit.sqf

17 lines
498 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
2016-05-24 13:13:11 +00:00
["ace_settingsInitialized", {
if (!GVAR(enabled)) exitWith {};
GVAR(temperatureShift) = random [-5, 0, 5];
GVAR(badWeatherShift) = random [10, 0, 10];
GVAR(humidityShift) = random [-0.1, 0, 0.1];
if (GVAR(windSimulation)) then {
call FUNC(initWind);
[FUNC(updateWind), 1] call CBA_fnc_addPerFrameHandler;
};
[FUNC(updateWeather), GVAR(updateInterval)] call CBA_fnc_addPerFrameHandler;
}] call CBA_fnc_addEventHandler;