ACE3/addons/refuel/functions/fnc_moduleRefuelSettings.sqf

28 lines
672 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
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
*
* Example:
* [LOGIC, [bob, kevin], true] call ace_refuel_fnc_moduleRefuelSettings
*
2015-08-13 17:33:55 +00:00
* Public: No
*/
params ["_logic", "", ["_activated", false, [false]]];
2015-08-13 17:33:55 +00:00
if !(_activated) exitWith {};
[_logic, QGVAR(rate), "rate"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(hoseLength), "hoseLength"] call EFUNC(common,readSettingFromModule);
2015-08-21 20:43:45 +00:00
INFO_2("Refuel Module Initialized with flow rate: %1 - hoseLength: %2",GVAR(rate), GVAR(hoseLength))