diff --git a/Sources/epoch_server/compile/epoch_server/EPOCH_server_vehicleInit.sqf b/Sources/epoch_server/compile/epoch_server/EPOCH_server_vehicleInit.sqf index 7ae5605b..5060cad9 100644 --- a/Sources/epoch_server/compile/epoch_server/EPOCH_server_vehicleInit.sqf +++ b/Sources/epoch_server/compile/epoch_server/EPOCH_server_vehicleInit.sqf @@ -16,3 +16,15 @@ _this addMPEventHandler["MPKilled", { _this call EPOCH_server_save_killedVehicle _this addMPEventHandler["MPHit", { EPOCH_saveVehQueue pushBackUnique (_this select 0) }]; _this addEventHandler["Local", { EPOCH_saveVehQueue pushBackUnique (_this select 0) }]; _this addEventHandler["GetOut", { EPOCH_saveVehQueue pushBackUnique (_this select 0) }]; + +// fix to prevent rope break +if (_this iskindof "AIR") then { + _this addEventHandler ["RopeAttach", { + params ["_object1", "_rope", "_object2"]; + if (isnull (driver _object2)) then { + if !(owner _object1 == owner _object2) then { + _object2 setowner (owner _object1); + }; + }; + }]; +};