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

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