ACE3/addons/cargo/functions/fnc_moduleSettings.sqf

28 lines
599 B
Plaintext
Raw Permalink Normal View History

#include "..\script_component.hpp"
/*
* 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>
*
* Return Value:
* None
*
2015-08-16 20:41:35 +00:00
* Example:
* [] call ace_cargo_fnc_moduleSettings
2015-08-16 20:41:35 +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 {};
[_logic, QGVAR(enable), "enable"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(paradropTimeCoefficent), "paradropTimeCoefficent"] call EFUNC(common,readSettingFromModule);
2015-08-16 20:41:35 +00:00
INFO("Cargo Module Initialized.");