ACE3/addons/maptools/functions/fnc_canUseMapTools.sqf
johnb432 6ba46ffa90
Map Tools - Code cleanup (#9750)
* Maptools cleanup

* Changed conditions to check

* Minor cleanup + fix
2024-02-03 10:48:21 -08:00

24 lines
461 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: esteldunedain
* Returns if the map tools can be used.
*
* Arguments:
* None
*
* Return Value:
* Map tools can be used <BOOL>
*
* Example:
* call ace_maptools_fnc_canUseMapTools
*
* Public: No
*/
visibleMap &&
{alive ACE_player} &&
{!GVAR(mapTool_isDragging)} &&
{!GVAR(mapTool_isRotating)} &&
{ACE_player getSlotItemName TYPE_MAP != ""} &&
{[ACE_player, "ACE_MapTools"] call EFUNC(common,hasItem)}