2015-08-15 16:43:13 +00:00
|
|
|
/*
|
|
|
|
* Author: GitHawk
|
2015-08-18 00:32:10 +00:00
|
|
|
* Module for adjusting the refuel 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
|
|
|
|
*
|
2015-08-18 00:32:10 +00:00
|
|
|
* Example;
|
|
|
|
* function = "ace_rearm_fnc_moduleRearmSettings"
|
|
|
|
*
|
2015-08-15 16:43:13 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2016-02-01 19:05:53 +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);
|
2015-08-18 00:32:10 +00:00
|
|
|
|
|
|
|
diag_log text format ["[ACE]: Rearm Module Initialized on level: %1", GVAR(level)];
|