2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-04-07 20:01:44 +00:00
|
|
|
/*
|
|
|
|
* Author: esteldunedain
|
2024-02-03 18:48:21 +00:00
|
|
|
* Returns if the map tools can be used.
|
2015-04-07 20:01:44 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
2016-06-18 09:50:41 +00:00
|
|
|
* Return Value:
|
2024-02-03 18:48:21 +00:00
|
|
|
* Map tools can be used <BOOL>
|
2017-06-08 13:31:51 +00:00
|
|
|
*
|
|
|
|
* Example:
|
2024-02-03 18:48:21 +00:00
|
|
|
* call ace_maptools_fnc_canUseMapTools
|
2015-04-07 20:01:44 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-01-15 21:50:48 +00:00
|
|
|
|
2015-01-15 09:51:18 +00:00
|
|
|
visibleMap &&
|
2015-01-17 19:04:48 +00:00
|
|
|
{alive ACE_player} &&
|
2015-01-15 21:50:48 +00:00
|
|
|
{!GVAR(mapTool_isDragging)} &&
|
2022-05-03 01:40:59 +00:00
|
|
|
{!GVAR(mapTool_isRotating)} &&
|
2024-02-03 18:48:21 +00:00
|
|
|
{ACE_player getSlotItemName TYPE_MAP != ""} &&
|
|
|
|
{[ACE_player, "ACE_MapTools"] call EFUNC(common,hasItem)}
|