mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Q(E)GVAR rangefinderData event
This commit is contained in:
parent
da4c08fb6c
commit
dd2e9140ae
@ -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;
|
||||
|
@ -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);
|
||||
};
|
||||
|
@ -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;
|
||||
|
@ -18,5 +18,5 @@ class CfgPatches {
|
||||
#include "RscTitles.hpp"
|
||||
|
||||
class ACE_newEvents {
|
||||
RangerfinderData = "ace_rangefinderData";
|
||||
RangerfinderData = QEGVAR(vector,rangefinderData);
|
||||
};
|
@ -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];
|
||||
|
@ -19,5 +19,5 @@ class CfgPatches {
|
||||
#include "ACE_Settings.hpp"
|
||||
|
||||
class ACE_newEvents {
|
||||
RangerfinderData = "ace_rangefinderData";
|
||||
RangerfinderData = QEGVAR(vector,rangefinderData);
|
||||
};
|
@ -20,5 +20,5 @@ class CfgPatches {
|
||||
#include "RscInGameUI.hpp"
|
||||
|
||||
class ACE_newEvents {
|
||||
RangerfinderData = "ace_rangefinderData";
|
||||
RangerfinderData = QGVAR(rangefinderData);
|
||||
};
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user