mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +03:00
Add reliable workaround for swimming in ground and air issue
Fixes #1913
This commit is contained in:
11
SQF/dayz_code/compile/fn_exitSwim.sqf
Normal file
11
SQF/dayz_code/compile/fn_exitSwim.sqf
Normal file
@@ -0,0 +1,11 @@
|
||||
//This workaround reliably exits swimming after a setPos directly from water to land or air.
|
||||
//"Getting out while IsMoveOutInProgress" prints to client RPT, but it's needed to complete quickly and should be harmless.
|
||||
|
||||
_unit = _this;
|
||||
_unit allowDamage false;
|
||||
_paraPosition = [_unit] call FNC_GetPos;
|
||||
_para = "ParachuteWest" createVehicleLocal [0,0,0];
|
||||
_para setPos _paraPosition;
|
||||
_unit moveInDriver _para;
|
||||
deleteVehicle _para;
|
||||
_unit allowDamage true;
|
||||
Reference in New Issue
Block a user