mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Movement/Climb Keybind
This commit is contained in:
parent
75c87dfd9b
commit
47e8282d98
@ -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;
|
||||||
|
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user