2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-04-07 20:01:44 +00:00
|
|
|
/*
|
|
|
|
* Author: esteldunedain
|
2024-02-03 18:48:21 +00:00
|
|
|
* Returns if the GPS on the map can be used.
|
2015-04-07 20:01:44 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
2016-06-18 09:50:41 +00:00
|
|
|
* Return Value:
|
2024-02-03 18:48:21 +00:00
|
|
|
* GPS can be used <BOOL>
|
2017-06-08 13:31:51 +00:00
|
|
|
*
|
|
|
|
* Example:
|
2024-02-03 18:48:21 +00:00
|
|
|
* call ace_maptools_fnc_canUseMapGPS
|
2015-04-07 20:01:44 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-01-15 21:50:48 +00:00
|
|
|
|
2024-04-04 11:09:02 +00:00
|
|
|
if (!visibleMap || {!alive ACE_player}) exitWith {false};
|
|
|
|
|
2024-05-21 23:25:59 +00:00
|
|
|
private _panels = flatten (ACE_player infoPanelComponents "left");
|
|
|
|
private _index = _panels find "MinimapDisplayComponent";
|
2024-04-04 11:09:02 +00:00
|
|
|
|
2024-05-21 23:25:59 +00:00
|
|
|
_index != -1 && {_panels select (_index + 1)}
|