ACE3/addons/refuel/functions/fnc_moduleRefuelSettings.sqf

25 lines
491 B
Plaintext
Raw Normal View History

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