Movement/Climb Keybind

This commit is contained in:
PabstMirror 2015-01-23 16:05:14 -06:00
parent 75c87dfd9b
commit 47e8282d98
2 changed files with 18 additions and 12 deletions

View File

@ -17,3 +17,21 @@
}, 0, _this select 0] call CBA_fnc_addPerFrameHandler; }, 0, _this select 0] call CBA_fnc_addPerFrameHandler;
}] call EFUNC(common,addEventHandler); }] call EFUNC(common,addEventHandler);
["ACE3",
localize "STR_ACE_Movement_Climb",
{
// Conditions: canInteract
_exceptions = [];
if !(_exceptions call EGVAR(common,canInteract)) exitWith {false};
// Conditions: specific
if (ACE_player != (vehicle ACE_player)) exitWith {false};
// Statement
[ACE_player] call FUNC(climb);
true
},
[47, [false, true, false]], //DIK_V + CTRL//STRG
false,
"keydown"
] call cba_fnc_registerKeybind;

View File

@ -17,18 +17,6 @@ class CfgPatches {
//#include "CfgInventoryGlobalVariable.hpp" //#include "CfgInventoryGlobalVariable.hpp"
#include "CfgMoves.hpp" #include "CfgMoves.hpp"
class ACE_Default_Keys {
class climb {
displayName = "$STR_ACE_Movement_Climb";
condition = QUOTE(_player == _vehicle);
statement = QUOTE([_player] call FUNC(climb););
key = 47;
shift = 0;
control = 1;
alt = 0;
};
};
class ACE_Options { class ACE_Options {
class GVAR(useImperial) { class GVAR(useImperial) {
displayName = "$STR_ACE_Movement_UseImperial"; displayName = "$STR_ACE_Movement_UseImperial";