2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2015-08-15 07:50:00 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal
|
|
|
|
* Module for adjusting the cargo settings
|
|
|
|
*
|
|
|
|
* Arguments:
|
2015-08-16 20:41:35 +00:00
|
|
|
* 0: The module logic <OBJECT>
|
|
|
|
* 1: Synchronized units <ARRAY>
|
|
|
|
* 2: Activated <BOOL>
|
2015-08-15 07:50:00 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
2015-08-16 20:41:35 +00:00
|
|
|
* Example:
|
2020-04-25 06:41:45 +00:00
|
|
|
* [] call ace_cargo_fnc_moduleSettings
|
2015-08-16 20:41:35 +00:00
|
|
|
*
|
2015-08-15 07:50:00 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2016-01-19 03:53:48 +00:00
|
|
|
params ["_logic", "", "_activated"];
|
2015-08-16 20:41:35 +00:00
|
|
|
|
|
|
|
if (!_activated) exitWith {};
|
2015-08-15 07:50:00 +00:00
|
|
|
|
|
|
|
[_logic, QGVAR(enable), "enable"] call EFUNC(common,readSettingFromModule);
|
2017-05-05 19:02:59 +00:00
|
|
|
[_logic, QGVAR(paradropTimeCoefficent), "paradropTimeCoefficent"] call EFUNC(common,readSettingFromModule);
|
2015-08-16 20:41:35 +00:00
|
|
|
|
2016-10-02 10:55:31 +00:00
|
|
|
INFO("Cargo Module Initialized.");
|