ACE3/addons/maptools/functions/fnc_canUseMapGPS.sqf
Fabio Schick ccb3e65734
Map Tools - Show GPS on Map when equipped with UAV Terminal (#9885)
* Show Map GPS when equipped with UAV Terminal

* Update Maptools Documentation

* Reword documentation

* Reword docs, remove dash

Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>

* Allow GPS when terminal slot is not empty

* Allow GPS on map when GPS sidepanel is available

* Reword docs

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>

* Return statement - remove ; and add comment

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>

---------

Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
2024-04-04 08:09:02 -03:00

25 lines
449 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: esteldunedain
* Returns if the GPS on the map can be used.
*
* Arguments:
* None
*
* Return Value:
* GPS can be used <BOOL>
*
* Example:
* call ace_maptools_fnc_canUseMapGPS
*
* Public: No
*/
if (!visibleMap || {!alive ACE_player}) exitWith {false};
private _gpsOpened = visibleGPS;
private _gpsAvailable = openGPS true;
if (!_gpsOpened) then {openGPS false};
_gpsAvailable // return