Skip to content

Commit

Permalink
Map Tools - Show GPS on Map when equipped with UAV Terminal (#9885)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people authored Apr 4, 2024
1 parent d312792 commit ccb3e65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions addons/maptools/functions/fnc_canUseMapGPS.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
* Public: No
*/

visibleMap &&
{alive ACE_player} &&
{"ItemGPS" in (assignedItems ACE_player)}
if (!visibleMap || {!alive ACE_player}) exitWith {false};

private _gpsOpened = visibleGPS;
private _gpsAvailable = openGPS true;
if (!_gpsOpened) then {openGPS false};

_gpsAvailable // return
2 changes: 1 addition & 1 deletion docs/wiki/feature/maptools.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ This adds map tools that can be used to measure distances between two points or
This adds a plotting board that can be used to aid in the rapid usage and adjustment of short-ranged indirect fires, as well as quick measurements of directions and distances between points, and general land-navigation.

### 1.4 GPS on map
If you are equipped with a vanilla GPS it will be shown on the map. (You don't need the `Map Tools` item in your inventory for this.)
If you have GPS capability, a GPS display will be shown on the map, indicating current grid position. (You don't need the `Map Tools` item in your inventory for this.)

## 2. Usage

Expand Down

0 comments on commit ccb3e65

Please sign in to comment.