Q(E)GVAR rangefinderData event

This commit is contained in:
jonpas 2016-05-25 01:44:56 +02:00
parent da4c08fb6c
commit dd2e9140ae
8 changed files with 11 additions and 10 deletions

View File

@ -49,4 +49,4 @@ if ((profileNamespace getVariable ["ACE_ATragMX_profileNamespaceVersion", 0]) ==
[] call FUNC(init);
[] call FUNC(restore_user_data);
["ace_rangefinderData", {_this call FUNC(sord)}] call CBA_fnc_addEventHandler;
[QEGVAR(vector,rangefinderData), {_this call FUNC(sord)}] call CBA_fnc_addEventHandler;

View File

@ -15,6 +15,7 @@ class CfgPatches {
#include "CfgVehicles.hpp"
#include "CfgWeapons.hpp"
#include "RscTitles.hpp"
class ACE_newEvents {
RangerfinderData = "ace_rangefinderData";
RangerfinderData = QEGVAR(vector,rangefinderData);
};

View File

@ -30,4 +30,4 @@ GVAR(vectorConnected) = false;
GVAR(noVectorData) = true;
GVAR(vectorGrid) = "00000000";
["ace_rangefinderData", FUNC(handleRangeFinderData)] call CBA_fnc_addEventHandler;
[QEGVAR(vector,rangefinderData), FUNC(handleRangeFinderData)] call CBA_fnc_addEventHandler;

View File

@ -18,5 +18,5 @@ class CfgPatches {
#include "RscTitles.hpp"
class ACE_newEvents {
RangerfinderData = "ace_rangefinderData";
RangerfinderData = QEGVAR(vector,rangefinderData);
};

View File

@ -20,7 +20,7 @@ _closeCode = {
//Add Eventhandler:
["ace_rangefinderData", {_this call FUNC(recieveRangefinderData)}] call CBA_fnc_addEventHandler;
[QEGVAR(vector,rangefinderData), {_this call FUNC(recieveRangefinderData)}] call CBA_fnc_addEventHandler;
//Global Variables to default:
GVAR(gpsPositionASL) = [0,0,0];

View File

@ -19,5 +19,5 @@ class CfgPatches {
#include "ACE_Settings.hpp"
class ACE_newEvents {
RangerfinderData = "ace_rangefinderData";
RangerfinderData = QEGVAR(vector,rangefinderData);
};

View File

@ -20,5 +20,5 @@ class CfgPatches {
#include "RscInGameUI.hpp"
class ACE_newEvents {
RangerfinderData = "ace_rangefinderData";
RangerfinderData = QGVAR(rangefinderData);
};

View File

@ -22,4 +22,4 @@ _direction = call FUNC(getDirection);
_azimuth = _direction select 0;
_inclination = _direction select 1;
//Send Data to connected GPS
["ace_rangefinderData", [_distance, _azimuth, _inclination]] call CBA_fnc_localEvent;
[QGVAR(rangefinderData), [_distance, _azimuth, _inclination]] call CBA_fnc_localEvent;