ACE3/addons/movement/XEH_postInit.sqf

21 lines
654 B
Plaintext
Raw Normal View History

2015-01-18 05:45:28 +00:00
//by commy2
#include "script_component.hpp"
2015-04-13 03:44:19 +00:00
if (!hasInterface) exitWith {};
["unit", LINKFUNC(handleVirtualMass)] call CBA_fnc_addPlayerEventHandler;
["loadout", LINKFUNC(handleVirtualMass)] call CBA_fnc_addPlayerEventHandler;
["ACE3 Movement", QGVAR(climb), localize LSTRING(Climb), {
2015-03-05 07:32:26 +00:00
// Conditions: canInteract
2015-03-20 22:55:39 +00:00
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
2015-03-05 07:32:26 +00:00
// Conditions: specific
if (ACE_player != (vehicle ACE_player)) exitWith {false};
// Statement
[ACE_player] call FUNC(climb);
true
},
2015-03-05 08:51:24 +00:00
{false},
2015-11-30 15:45:20 +00:00
[47, [false, true, false]], false] call CBA_fnc_addKeybind; //DIK_V + CTRL//STRG