mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ccb3e65734
* 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>
25 lines
449 B
Plaintext
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
|