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:
|
|
|
|
* function = "ace_cargo_fnc_loadItem"
|
|
|
|
*
|
2015-08-15 07:50:00 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-08-16 20:41:35 +00:00
|
|
|
if (!isServer) exitWith {};
|
|
|
|
|
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);
|
2015-08-16 20:41:35 +00:00
|
|
|
|
2015-08-26 13:20:11 +00:00
|
|
|
ACE_LOGINFO("Cargo Module Initialized.");
|