2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2016-08-22 13:09:08 +00:00
|
|
|
/*
|
|
|
|
* Author: Jonpas
|
|
|
|
* Initializes the Advanced Throwing module.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Logic <OBJECT>
|
|
|
|
* 1: Synchronized Units <ARRAY>
|
|
|
|
* 2: Module Activated <BOOL>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
2016-09-02 23:39:34 +00:00
|
|
|
* [logic, [unit1, unit2], true] call ace_advanced_throwing_fnc_moduleInit
|
2016-08-22 13:09:08 +00:00
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Public: No
|
2016-08-22 13:09:08 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_logic", "_units", "_activated"];
|
|
|
|
|
|
|
|
if (!_activated) exitWith {};
|
|
|
|
|
|
|
|
[_logic, QGVAR(enabled), "enabled"] call EFUNC(common,readSettingFromModule);
|
|
|
|
[_logic, QGVAR(showThrowArc), "showThrowArc"] call EFUNC(common,readSettingFromModule);
|
|
|
|
[_logic, QGVAR(showMouseControls), "showMouseControls"] call EFUNC(common,readSettingFromModule);
|
|
|
|
[_logic, QGVAR(enablePickUp), "enablePickUp"] call EFUNC(common,readSettingFromModule);
|
|
|
|
[_logic, QGVAR(enablePickUpAttached), "enablePickUpAttached"] call EFUNC(common,readSettingFromModule);
|
|
|
|
|
2016-10-02 10:55:31 +00:00
|
|
|
INFO_1("Advanced Throwing Module Initialized. Enabled: %1",GVAR(enabled));
|