2015-04-07 20:01:44 +00:00
|
|
|
/*
|
|
|
|
* Author: esteldunedain
|
|
|
|
* canUseMapTools
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Return value:
|
|
|
|
* <BOOL>
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-01-15 21:50:48 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-01-15 09:51:18 +00:00
|
|
|
visibleMap &&
|
2015-01-17 19:04:48 +00:00
|
|
|
{alive ACE_player} &&
|
2015-08-06 17:14:45 +00:00
|
|
|
{
|
|
|
|
scopeName "hasMap";
|
|
|
|
{
|
|
|
|
if (_x isKindOf ["ItemMap", configFile >> "CfgWeapons"]) exitWith {true breakOut "hasMap"};
|
|
|
|
} forEach (assignedItems ACE_player);
|
|
|
|
false
|
|
|
|
} &&
|
2015-01-15 09:51:18 +00:00
|
|
|
{"ACE_MapTools" in (items ACE_player)} &&
|
2015-01-15 21:50:48 +00:00
|
|
|
{!GVAR(mapTool_isDragging)} &&
|
|
|
|
{!GVAR(mapTool_isRotating)}
|