2015-08-08 06:26:15 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-10-19 04:59:40 +00:00
|
|
|
if (["STMapGestures"] call EFUNC(common,isModLoaded)) exitWith {
|
2016-10-02 10:55:31 +00:00
|
|
|
WARNING("st_map_gestures is installed - exiting [remove st_map_gestures.pbo to allow ace version]");
|
2015-10-19 04:59:40 +00:00
|
|
|
};
|
|
|
|
|
2015-08-08 06:26:15 +00:00
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
|
2016-05-24 13:13:11 +00:00
|
|
|
["ace_settingsInitialized", {
|
2015-10-19 04:59:40 +00:00
|
|
|
if (!GVAR(enabled)) exitWith {};
|
2016-10-27 17:54:58 +00:00
|
|
|
|
|
|
|
// This will set QEGVAR(common,playerOwner) var on player objects
|
|
|
|
[] call EFUNC(common,setPlayerOwner);
|
|
|
|
|
|
|
|
GVAR(pointPosition) = [0,0,0];
|
|
|
|
|
|
|
|
[QGVAR(syncPos), {
|
|
|
|
params ["_unit", "_pointPos"];
|
|
|
|
_unit setVariable [QGVAR(pointPosition), _pointPos];
|
|
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
|
2015-08-08 06:26:15 +00:00
|
|
|
[{
|
|
|
|
if (isNull (findDisplay 12)) exitWith {};
|
|
|
|
|
|
|
|
params ["", "_pfhId"];
|
|
|
|
|
|
|
|
call FUNC(receiverInit);
|
|
|
|
call FUNC(transmitterInit);
|
|
|
|
|
|
|
|
[_pfhId] call CBA_fnc_removePerFrameHandler;
|
|
|
|
}, 1, []] call CBA_fnc_addPerFrameHandler;
|
2016-05-22 15:29:05 +00:00
|
|
|
}] call CBA_fnc_addEventHandler;
|