ACE3/addons/rearm/functions/fnc_moduleRearmSettings.sqf

33 lines
741 B
Plaintext
Raw Normal View History

2015-08-15 16:43:13 +00:00
/*
* Author: GitHawk
* Module for adjusting the refuel settings.
2015-08-15 16:43:13 +00:00
*
* Arguments:
* 0: The module logic <OBJECT>
* 1: Synchronized units <ARRAY>
* 2: Activated <BOOL>
2015-08-15 16:43:13 +00:00
*
* Return Value:
* None
*
* Example;
* function = "ace_rearm_fnc_moduleRearmSettings"
*
2015-08-15 16:43:13 +00:00
* Public: No
*/
#include "script_component.hpp"
params [
"_logic",
"",
["_activated", false, [false]]
];
2015-08-15 16:43:13 +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);
diag_log text format ["[ACE]: Rearm Module Initialized on level: %1", GVAR(level)];
2016-02-26 10:30:22 +00:00
diag_log text format ["[ACE]: Rearm Module Initialized on supply: %1", GVAR(supply)];