ACE3/addons/rearm/functions/fnc_moduleRearmSettings.sqf

32 lines
649 B
Plaintext
Raw Normal View History

2015-08-15 16:43:13 +00:00
/*
* Author: GitHawk
* Module for adjusting the rearm 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);
INFO_2("Module Initialized [level: %1][supply: %2]",GVAR(level),GVAR(supply));