2015-08-13 17:33:55 +00:00
|
|
|
/*
|
|
|
|
* Author: GitHawk
|
2015-08-20 20:10:26 +00:00
|
|
|
* Module for adjusting the refuel settings.
|
2015-08-13 17:33:55 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The module logic <LOGIC>
|
|
|
|
* 1: units <ARRAY>
|
|
|
|
* 2: activated <BOOL>
|
|
|
|
*
|
|
|
|
* Return Value:
|
2015-08-14 01:18:54 +00:00
|
|
|
* None
|
2015-08-13 17:33:55 +00:00
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* [LOGIC, [bob, kevin], true] call ace_refuel_fnc_moduleRefuelSettings
|
|
|
|
*
|
2015-08-13 17:33:55 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2016-02-02 14:03:06 +00:00
|
|
|
params ["_logic", "", ["_activated", false, [false]]];
|
2015-08-13 17:33:55 +00:00
|
|
|
|
|
|
|
if !(_activated) exitWith {};
|
|
|
|
|
|
|
|
[_logic, QGVAR(rate), "rate"] call EFUNC(common,readSettingFromModule);
|
2017-05-31 16:30:48 +00:00
|
|
|
[_logic, QGVAR(hoseLength), "hoseLength"] call EFUNC(common,readSettingFromModule);
|
2015-08-21 20:43:45 +00:00
|
|
|
|
2017-05-31 16:30:48 +00:00
|
|
|
INFO_2("Refuel Module Initialized with flow rate: %1 - hoseLength: %2",GVAR(rate), GVAR(hoseLength))
|