2015-08-15 16:43:13 +00:00
|
|
|
/*
|
|
|
|
* Author: GitHawk
|
2017-09-29 19:53:25 +00:00
|
|
|
* Module for adjusting the rearm settings.
|
2015-08-15 16:43:13 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
2015-08-18 00:32:10 +00:00
|
|
|
* 0: The module logic <OBJECT>
|
|
|
|
* 1: Synchronized units <ARRAY>
|
|
|
|
* 2: Activated <BOOL>
|
2015-08-15 16:43:13 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
2015-08-18 00:32:10 +00:00
|
|
|
* function = "ace_rearm_fnc_moduleRearmSettings"
|
|
|
|
*
|
2015-08-15 16:43:13 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2016-05-12 12:55:40 +00:00
|
|
|
params [
|
|
|
|
"_logic",
|
|
|
|
"",
|
|
|
|
["_activated", false, [false]]
|
|
|
|
];
|
2015-08-15 16:43:13 +00:00
|
|
|
|
2015-08-18 00:32:10 +00:00
|
|
|
if (!_activated) exitWith {};
|
2015-08-15 16:43:13 +00:00
|
|
|
|
|
|
|
[_logic, QGVAR(level), "level"] call EFUNC(common,readSettingFromModule);
|
2016-02-26 10:30:22 +00:00
|
|
|
[_logic, QGVAR(supply), "supply"] call EFUNC(common,readSettingFromModule);
|
2015-08-18 00:32:10 +00:00
|
|
|
|
2017-09-29 19:53:25 +00:00
|
|
|
INFO_2("Module Initialized [level: %1][supply: %2]",GVAR(level),GVAR(supply));
|