Make supply crates draggable via ACE3 Interaction menu

This commit is contained in:
Filip Maciejewski 2017-11-21 19:50:12 +01:00 committed by Christian
parent 0c43261f4a
commit 361df615f2
3 changed files with 4 additions and 0 deletions

View File

@ -48,6 +48,7 @@ reverse _stored_crates;
_x setPos _unload_pos;
[_x, true] remoteExec ["enableRopeAttach"];
if(KP_liberation_ace) then {[_x, true, [-0.55, 1.5, 0], 0] call ace_dragging_fnc_setDraggable;};
_unloaded = true;
};
if (_unloaded) exitWith {

View File

@ -42,6 +42,7 @@ if (!isNil "_storage") then {
_crate attachTo [_storage, [(_storage_positions select _crates_count) select 0, (_storage_positions select _crates_count) select 1, _height]];
[_crate, false] remoteExec ["enableRopeAttach"];
if(KP_liberation_ace) then {[_crate, false, [-0.55, 1.5, 0], 0] call ace_dragging_fnc_setDraggable;};
if (_update) then {
if ((_storage getVariable ["KP_liberation_storage_type",-1]) == 1) then {

View File

@ -31,4 +31,6 @@ clearMagazineCargoGlobal _crate;
clearBackpackCargoGlobal _crate;
clearItemCargoGlobal _crate;
if(KP_liberation_ace) then {[_crate, true, [-0.55, 1.5, 0], 0] call ace_dragging_fnc_setDraggable;};
_crate