ACE3/addons/rearm/functions/fnc_moduleRearmSettings.sqf
GitHawk d0509830e3 Some things
Made params nicer, replaced some forEach and used params in XEH_respawn
2016-05-12 14:55:40 +02:00

33 lines
741 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);
diag_log text format ["[ACE]: Rearm Module Initialized on level: %1", GVAR(level)];
diag_log text format ["[ACE]: Rearm Module Initialized on supply: %1", GVAR(supply)];