ACE3/addons/movement/XEH_postInit.sqf
2024-03-28 13:57:23 -05:00

21 lines
654 B
Plaintext

//by commy2
#include "script_component.hpp"
if (!hasInterface) exitWith {};
["unit", LINKFUNC(handleVirtualMass)] call CBA_fnc_addPlayerEventHandler;
["loadout", LINKFUNC(handleVirtualMass)] call CBA_fnc_addPlayerEventHandler;
["ACE3 Movement", QGVAR(climb), localize LSTRING(Climb), {
// Conditions: canInteract
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
// Conditions: specific
if (ACE_player != (vehicle ACE_player)) exitWith {false};
// Statement
[ACE_player] call FUNC(climb);
true
},
{false},
[47, [false, true, false]], false] call CBA_fnc_addKeybind; //DIK_V + CTRL//STRG