ACE3/addons/movement/XEH_postInit.sqf

35 lines
970 B
Plaintext
Raw Normal View History

2015-01-18 05:45:28 +00:00
//by commy2
#include "script_component.hpp"
["inventoryDisplayLoaded", {
[{
private "_dialog";
_dialog = _this select 0;
if (isNull _dialog) exitWith {
[_this select 1] call CBA_fnc_removePerFrameHandler;
};
_dialog displayCtrl 111 ctrlSetText format ["%1 - %2 %3", [ACE_player] call EFUNC(common,getName), localize "STR_ACE_Movement_Weight", [ACE_player] call FUNC(getWeight)];
}, 0, _this select 0] call CBA_fnc_addPerFrameHandler;
}] call EFUNC(common,addEventHandler);
2015-01-23 22:05:14 +00:00
2015-03-05 07:32:26 +00:00
["ACE3", QGVAR(climb), 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
},
2015-03-05 08:51:24 +00:00
{false},
2015-03-05 07:32:26 +00:00
[47, [false, true, false]], false] call cba_fnc_addKeybind; //DIK_V + CTRL//STRG