2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-04-12 10:33:09 +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>
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
2020-04-25 06:41:45 +00:00
|
|
|
* [LOGIC, [bob, kevin], true] call ace_winddeflection_fnc_initModuleSettings
|
2017-06-08 13:31:51 +00:00
|
|
|
*
|
2015-04-12 10:33:09 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2015-08-03 23:55:09 +00:00
|
|
|
params ["_logic", "_units", "_activated"];
|
2015-04-12 10:33:09 +00:00
|
|
|
|
|
|
|
if !(_activated) exitWith {};
|
|
|
|
|
2015-04-18 19:17:37 +00:00
|
|
|
[_logic, QGVAR(enabled), "enabled"] call EFUNC(common,readSettingFromModule);
|
|
|
|
[_logic, QGVAR(vehicleEnabled), "vehicleEnabled"] call EFUNC(common,readSettingFromModule);
|
2015-04-12 10:33:09 +00:00
|
|
|
[_logic, QGVAR(simulationInterval), "simulationInterval"] call EFUNC(common,readSettingFromModule);
|
2015-04-13 10:54:06 +00:00
|
|
|
|
|
|
|
GVAR(simulationInterval) = 0 max GVAR(simulationInterval) min 0.2;
|