ACE3/addons/mk6mortar/functions/fnc_moduleInit.sqf

28 lines
837 B
Plaintext
Raw Normal View History

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
*/
#include "script_component.hpp"
params ["_logic", "_syncedUnits", "_activated"];
2015-04-05 07:18:51 +00:00
if (!_activated) exitWith {WARNING("Module - placed but not active");};
[_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);