ACE3/addons/cargo/functions/fnc_moduleSettings.sqf
2020-04-25 08:41:45 +02:00

28 lines
596 B
Plaintext

#include "script_component.hpp"
/*
* Author: Glowbal
* Module for adjusting the cargo settings
*
* Arguments:
* 0: The module logic <OBJECT>
* 1: Synchronized units <ARRAY>
* 2: Activated <BOOL>
*
* Return Value:
* None
*
* Example:
* [] call ace_cargo_fnc_moduleSettings
*
* Public: No
*/
params ["_logic", "", "_activated"];
if (!_activated) exitWith {};
[_logic, QGVAR(enable), "enable"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(paradropTimeCoefficent), "paradropTimeCoefficent"] call EFUNC(common,readSettingFromModule);
INFO("Cargo Module Initialized.");