ACE3/addons/movement/XEH_postInit.sqf
Glowbal 8c9b31b1c7 Merge pull request #3815 from acemod/cbaEventSystem
Deprecate ACE events framework
2016-06-09 14:20:26 +02:00

21 lines
666 B
Plaintext

//by commy2
#include "script_component.hpp"
if (!hasInterface) exitWith {};
["ace_playerChanged", FUNC(handleVirtualMass)] call CBA_fnc_addEventHandler;
["ace_playerInventoryChanged", FUNC(handleVirtualMass)] call CBA_fnc_addEventHandler;
["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