ACE3/addons/maptools/functions/fnc_canUseMapTools.sqf
Drofseh 36ae99b9f3
MapTools - Allow mod maps and compasses to use map tools (#8858)
* allow mod maps and compasses to use map tools

* single quotes

* Update addons/maptools/CfgVehicles.hpp

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

* Update addons/maptools/CfgVehicles.hpp

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2022-05-02 20:40:59 -05:00

24 lines
445 B
Plaintext

#include "script_component.hpp"
/*
* Author: esteldunedain
* canUseMapTools
*
* Arguments:
* None
*
* Return Value:
* Boolean <BOOL>
*
* Example:
* call ACE_maptools_fnc_canUseMapTools
*
* Public: No
*/
visibleMap &&
{alive ACE_player} &&
{"ACE_MapTools" in (ACE_player call EFUNC(common,uniqueItems))} &&
{!GVAR(mapTool_isDragging)} &&
{!GVAR(mapTool_isRotating)} &&
{getUnitLoadout ACE_player param [9, []] param [0, ""] != ""}