2015-01-20 23:18:40 +00:00
|
|
|
#include "script_component.hpp"
|
2015-04-20 11:54:22 +00:00
|
|
|
|
2016-01-06 22:26:16 +00:00
|
|
|
GVAR(WindInfo) = false;
|
2024-03-26 12:59:48 +00:00
|
|
|
|
2016-06-07 00:22:53 +00:00
|
|
|
["ACE3 Common", QGVAR(WindInfoKey), localize LSTRING(WindInfoKeyToggle),
|
2015-04-06 03:02:34 +00:00
|
|
|
{
|
|
|
|
// Conditions: canInteract
|
2024-03-26 12:59:48 +00:00
|
|
|
if !([ACE_player, ACE_player, ["isNotDragging", "isNotCarrying", "isNotSitting", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
|
|
|
if !(isNull objectParent ACE_player || {objectParent ACE_player isKindOf "StaticWeapon"}) exitWith {false};
|
2015-04-06 03:02:34 +00:00
|
|
|
|
|
|
|
// Statement
|
|
|
|
[] call FUNC(displayWindInfo);
|
|
|
|
},
|
|
|
|
{false},
|
|
|
|
[37, [true, false, false]], false, 0] call CBA_fnc_addKeybind; // (SHIFT + K)
|
2016-06-07 00:22:53 +00:00
|
|
|
|
|
|
|
["ACE3 Common", QGVAR(WindInfoKey_hold), localize LSTRING(WindInfoKeyHold),
|
2016-05-06 17:47:59 +00:00
|
|
|
{
|
|
|
|
// Conditions: canInteract
|
2024-03-26 12:59:48 +00:00
|
|
|
if !([ACE_player, ACE_player, ["isNotDragging", "isNotCarrying", "isNotSitting", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
|
|
|
if !(isNull objectParent ACE_player || {objectParent ACE_player isKindOf "StaticWeapon"}) exitWith {false};
|
2016-05-06 17:47:59 +00:00
|
|
|
|
|
|
|
// Statement
|
|
|
|
[] call FUNC(displayWindInfo);
|
|
|
|
},
|
|
|
|
{
|
|
|
|
GVAR(WindInfo) = false;
|
|
|
|
(["RscWindIntuitive"] call BIS_fnc_rscLayer) cutText ["", "PLAIN", 2];
|
|
|
|
},
|
|
|
|
[0, [false, false, false]], false, 0] call CBA_fnc_addKeybind; // (empty default key)
|