diff --git a/SQF/dayz_code/actions/remove.sqf b/SQF/dayz_code/actions/remove.sqf index ede026a2d..39aa178b0 100644 --- a/SQF/dayz_code/actions/remove.sqf +++ b/SQF/dayz_code/actions/remove.sqf @@ -157,6 +157,8 @@ if (_proceed) then { // Double check that object is not null if(!isNull(_obj)) then { + _ipos = getPosATL _obj; + deleteVehicle _obj; if(!_isWreck) then { @@ -187,10 +189,8 @@ if (_proceed) then { cutText ["No parts found.", "PLAIN DOWN"]; }; - _ipos = getPosATL player; - - if (_ipos select 2 < 2) then { - _ipos = [_ipos select 0,_ipos select 1,0]; + if (_ipos select 2 < 0) then { + _ipos set [2,0]; }; _radius = 1; diff --git a/SQF/dayz_code/compile/player_packTent.sqf b/SQF/dayz_code/compile/player_packTent.sqf index 90af47e9e..25697c9d4 100644 --- a/SQF/dayz_code/compile/player_packTent.sqf +++ b/SQF/dayz_code/compile/player_packTent.sqf @@ -45,6 +45,10 @@ if(!isNull _obj and alive _obj) then { _location = _pos; + if (_location select 2 < 0) then { + _location set [2,0]; + }; + //place tent (local) //_bag = createVehicle ["WeaponHolder_ItemTent",_pos,[], 0, "CAN_COLLIDE"]; _object = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];