ACE3/addons/maptools/functions/fnc_canUseMapGPS.sqf

24 lines
485 B
Plaintext
Raw Normal View History

#include "..\script_component.hpp"
2015-04-07 20:01:44 +00:00
/*
* Author: esteldunedain
* 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:
* GPS can be used <BOOL>
*
* Example:
* call ace_maptools_fnc_canUseMapGPS
2015-04-07 20:01:44 +00:00
*
* Public: No
*/
2015-01-15 21:50:48 +00:00
if (!visibleMap || {!alive ACE_player}) exitWith {false};
private _panels = flatten (ACE_player infoPanelComponents "left");
private _index = _panels find "MinimapDisplayComponent";
_index != -1 && {_panels select (_index + 1)}