ACE3/addons/maptools/functions/fnc_canUseMapTools.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

30 lines
544 B
Plaintext

/*
* Author: esteldunedain
* canUseMapTools
*
* Arguments:
* None
*
* Return Value:
* Boolean <BOOL>
*
* Example:
* call ACE_maptools_fnc_canUseMapTools
*
* Public: No
*/
#include "script_component.hpp"
visibleMap &&
{alive ACE_player} &&
{
scopeName "hasMap";
{
if (_x isKindOf ["ItemMap", configFile >> "CfgWeapons"]) exitWith {true breakOut "hasMap"};
} forEach (assignedItems ACE_player);
false
} &&
{"ACE_MapTools" in (items ACE_player)} &&
{!GVAR(mapTool_isDragging)} &&
{!GVAR(mapTool_isRotating)}