mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
prevent sinking into ground
This commit is contained in:
@@ -157,6 +157,8 @@ if (_proceed) then {
|
|||||||
// Double check that object is not null
|
// Double check that object is not null
|
||||||
if(!isNull(_obj)) then {
|
if(!isNull(_obj)) then {
|
||||||
|
|
||||||
|
_ipos = getPosATL _obj;
|
||||||
|
|
||||||
deleteVehicle _obj;
|
deleteVehicle _obj;
|
||||||
|
|
||||||
if(!_isWreck) then {
|
if(!_isWreck) then {
|
||||||
@@ -187,10 +189,8 @@ if (_proceed) then {
|
|||||||
cutText ["No parts found.", "PLAIN DOWN"];
|
cutText ["No parts found.", "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
|
|
||||||
_ipos = getPosATL player;
|
if (_ipos select 2 < 0) then {
|
||||||
|
_ipos set [2,0];
|
||||||
if (_ipos select 2 < 2) then {
|
|
||||||
_ipos = [_ipos select 0,_ipos select 1,0];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_radius = 1;
|
_radius = 1;
|
||||||
|
|||||||
@@ -45,6 +45,10 @@ if(!isNull _obj and alive _obj) then {
|
|||||||
|
|
||||||
_location = _pos;
|
_location = _pos;
|
||||||
|
|
||||||
|
if (_location select 2 < 0) then {
|
||||||
|
_location set [2,0];
|
||||||
|
};
|
||||||
|
|
||||||
//place tent (local)
|
//place tent (local)
|
||||||
//_bag = createVehicle ["WeaponHolder_ItemTent",_pos,[], 0, "CAN_COLLIDE"];
|
//_bag = createVehicle ["WeaponHolder_ItemTent",_pos,[], 0, "CAN_COLLIDE"];
|
||||||
_object = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
|
_object = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
|
||||||
|
|||||||
Reference in New Issue
Block a user