mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
27 lines
481 B
Plaintext
27 lines
481 B
Plaintext
/*
|
|
* Author: esteldunedain
|
|
* canUseMapTools
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return value:
|
|
* <BOOL>
|
|
*
|
|
* 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)}
|