ACE3/addons/movement/XEH_postInit.sqf

36 lines
988 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 {};
2015-01-18 05:45:28 +00:00
["inventoryDisplayLoaded", {
[{
private "_dialog";
_dialog = _this select 0;
if (isNull _dialog) exitWith {
[_this select 1] call CBA_fnc_removePerFrameHandler;
};
2015-05-28 19:59:04 +00:00
_dialog displayCtrl 111 ctrlSetText format ["%1 - %2 %3", [ACE_player] 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-03-05 07:32:26 +00:00
[47, [false, true, false]], false] call cba_fnc_addKeybind; //DIK_V + CTRL//STRG