2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2015-04-27 10:28:56 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal, Ruthberg
|
|
|
|
* Module for adjusting the wind deflection settings
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The module logic <LOGIC>
|
|
|
|
* 1: units <ARRAY>
|
|
|
|
* 2: activated <BOOL>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None <NIL>
|
|
|
|
*
|
2016-01-05 07:39:29 +00:00
|
|
|
* Example:
|
|
|
|
* [module, [], true] call ace_weather_fnc_initModuleSettings
|
|
|
|
*
|
2015-04-27 10:28:56 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2015-08-04 00:11:24 +00:00
|
|
|
params ["_logic", "_units", "_activated"];
|
2015-04-27 10:28:56 +00:00
|
|
|
|
|
|
|
if !(_activated) exitWith {};
|
|
|
|
|
2017-11-10 14:44:15 +00:00
|
|
|
// Turns the weather module on / off
|
|
|
|
[_logic, QGVAR(enabled), "enabled"] call EFUNC(common,readSettingFromModule);
|
2015-04-27 10:47:26 +00:00
|
|
|
|
|
|
|
// Server weather update interval
|
2017-11-10 14:44:15 +00:00
|
|
|
[_logic, QGVAR(updateInterval), "updateInterval"] call EFUNC(common,readSettingFromModule);
|
|
|
|
|
|
|
|
// Turns the (map based) wind simulation on / off
|
|
|
|
[_logic, QGVAR(windSimulation), "windSimulation"] call EFUNC(common,readSettingFromModule);
|
2015-04-27 10:47:26 +00:00
|
|
|
|
2017-11-10 14:44:15 +00:00
|
|
|
GVAR(updateInterval) = 1 max GVAR(updateInterval) min 600;
|