2015-03-24 04:18:00 +00:00
|
|
|
//esteldunedain
|
2015-01-16 08:13:29 +00:00
|
|
|
//update gps display
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
if ((!("ItemGPS" in assigneditems ACE_player)) || {isNull (uiNamespace getVariable [QGVAR(ui_mapGpsDisplay), displayNull])}) exitWith {
|
2015-04-06 16:22:43 +00:00
|
|
|
("RscACE_MapGps" call BIS_fnc_rscLayer) cutText ["","PLAIN"]; //close GPS RSC
|
|
|
|
[(_this select 1)] call CBA_fnc_removePerFrameHandler; //remove frameHandler
|
2015-01-16 08:13:29 +00:00
|
|
|
};
|
|
|
|
disableSerialization;
|
|
|
|
|
|
|
|
_mapGpsDisplay = uiNamespace getVariable [QGVAR(ui_mapGpsDisplay), displayNull];
|
|
|
|
_ctrl = _mapGpsDisplay displayCtrl 913590;
|
2015-04-07 20:01:44 +00:00
|
|
|
_ctrl ctrlSetText str(round(getDir ACE_player)); //set Heading
|
2015-01-16 08:13:29 +00:00
|
|
|
_ctrl = _mapGpsDisplay displayCtrl 913591;
|
2015-04-07 20:01:44 +00:00
|
|
|
_ctrl ctrlSetText str(round((getPosASL ACE_player) select 2)); //set Altitude
|
2015-01-16 08:13:29 +00:00
|
|
|
_ctrl = _mapGpsDisplay displayCtrl 913592;
|
2015-04-07 20:01:44 +00:00
|
|
|
_ctrl ctrlSetText mapGridPosition ACE_player; //set grid cords
|