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 {};
|
|
|
|
|
2015-01-18 05:45:28 +00:00
|
|
|
["inventoryDisplayLoaded", {
|
|
|
|
|
|
|
|
[{
|
2016-01-06 21:42:02 +00:00
|
|
|
disableSerialization;
|
|
|
|
params ["_dialog"];
|
2015-01-18 05:45:28 +00:00
|
|
|
|
|
|
|
if (isNull _dialog) exitWith {
|
|
|
|
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
|
|
|
};
|
|
|
|
|
2015-12-11 18:01:50 +00:00
|
|
|
_dialog displayCtrl 111 ctrlSetText format ["%1 - %2 %3", [ACE_player, false, true] call EFUNC(common,getName), localize LSTRING(Weight), [ACE_player] call FUNC(getWeight)];
|
2015-01-18 05:45:28 +00:00
|
|
|
|
|
|
|
}, 0, _this select 0] call CBA_fnc_addPerFrameHandler;
|
|
|
|
|
|
|
|
}] call EFUNC(common,addEventHandler);
|
2015-01-23 22:05:14 +00:00
|
|
|
|
2015-05-28 19:59:04 +00:00
|
|
|
["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
|