mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
1be9e7ca30
Rearm - Limited Supply (Fix Merge Conflcits)
32 lines
652 B
Plaintext
32 lines
652 B
Plaintext
/*
|
|
* Author: GitHawk
|
|
* Module for adjusting the refuel settings.
|
|
*
|
|
* Arguments:
|
|
* 0: The module logic <OBJECT>
|
|
* 1: Synchronized units <ARRAY>
|
|
* 2: Activated <BOOL>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* function = "ace_rearm_fnc_moduleRearmSettings"
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params [
|
|
"_logic",
|
|
"",
|
|
["_activated", false, [false]]
|
|
];
|
|
|
|
if (!_activated) exitWith {};
|
|
|
|
[_logic, QGVAR(level), "level"] call EFUNC(common,readSettingFromModule);
|
|
[_logic, QGVAR(supply), "supply"] call EFUNC(common,readSettingFromModule);
|
|
|
|
INFO_2("Module Initialized [level: %1][supply: %2]", GVAR(level), GVAR(supply));
|