Make supply crates draggable via ACE3 Interaction menu
This commit is contained in:
parent
0c43261f4a
commit
361df615f2
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue