diff --git a/dayz_code/compile/player_checkStealth.sqf b/dayz_code/compile/player_checkStealth.sqf index 3e0571c63..b4974f706 100644 --- a/dayz_code/compile/player_checkStealth.sqf +++ b/dayz_code/compile/player_checkStealth.sqf @@ -29,6 +29,19 @@ if (["pknl",_anim] call fnc_inString) then { if (_anim4 == "aswm") then { _scaleMvmt = 0.3; dayz_isSwimming = true; + + // if surface is not water + _isWater = surfaceIsWater _pos; + if(!_isWater) then { + + // Stops swimming in ground + [objNull, player, rSwitchMove,""] call RE; + player playActionNow "stop"; + + dayz_isSwimming = false; + }; + + } else { dayz_isSwimming = false; };