2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2015-04-05 07:18:51 +00:00
|
|
|
/*
|
|
|
|
* Author: PabstMirror
|
2015-04-05 22:50:07 +00:00
|
|
|
* Loads settings from the module.
|
2015-04-05 07:18:51 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The Module Logic Object <OBJECT>
|
|
|
|
* 1: synced objects <ARRAY>
|
|
|
|
* 2: Activated <BOOL>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
2015-04-06 06:05:28 +00:00
|
|
|
* [fromModule] call ace_mk6mortar_fnc_moduleInit
|
2015-04-05 07:18:51 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2019-12-17 16:14:45 +00:00
|
|
|
params ["_logic", "", "_activated"];
|
2015-04-05 07:18:51 +00:00
|
|
|
|
|
|
|
if (!_activated) exitWith {WARNING("Module - placed but not active");};
|
|
|
|
|
2015-04-05 17:40:48 +00:00
|
|
|
[_logic, QGVAR(airResistanceEnabled), "airResistanceEnabled"] call EFUNC(common,readSettingFromModule);
|
2015-04-05 19:34:39 +00:00
|
|
|
[_logic, QGVAR(allowComputerRangefinder), "allowComputerRangefinder"] call EFUNC(common,readSettingFromModule);
|
|
|
|
[_logic, QGVAR(allowCompass), "allowCompass"] call EFUNC(common,readSettingFromModule);
|
2015-12-17 10:00:46 +00:00
|
|
|
[_logic, QGVAR(useAmmoHandling), "useAmmoHandling"] call EFUNC(common,readSettingFromModule);
|