prevent sinking into ground

This commit is contained in:
[VB]AWOL
2013-10-27 10:34:48 -05:00
parent aa14a03c4e
commit 478eb29a23
2 changed files with 8 additions and 4 deletions

View File

@@ -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;

View File

@@ -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"];