Fix swimming in ground again #1913

Closes #1913
This commit is contained in:
ebayShopper
2017-03-22 14:59:31 -04:00
parent fa18cbce51
commit ad7a12771a
4 changed files with 15 additions and 2 deletions

View File

@@ -112,7 +112,7 @@ _switchUnit = {
_rndx = floor(random 100);
_rndy = floor(random 100);
_oldUnit setPosATL [(respawn_west_original select 0) + _rndx, (respawn_west_original select 1) + _rndy, 0];
_newUnit setPosATL [_position select 0,_position select 1,(_position select 2)+.1]; //Prevents swimming in ground glitch
_newUnit setPosATL _position;
removeAllWeapons _oldUnit;
{_oldUnit removeMagazine _x;} count magazines _oldUnit;
if !(isNull _oldUnit) then {deleteVehicle _oldUnit;};