From 6cf7f04dac18d695fcbdf2ee6c9ef99bb0eb3e2e Mon Sep 17 00:00:00 2001 From: sethduda Date: Mon, 7 Mar 2016 12:13:48 -0500 Subject: [PATCH] Changing _cargoHitchModelPos & _vehicleHitchModelPos to always have Z set to 0 --- addons/SA_AdvancedTowing/functions/fn_advancedTowingInit.sqf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/SA_AdvancedTowing/functions/fn_advancedTowingInit.sqf b/addons/SA_AdvancedTowing/functions/fn_advancedTowingInit.sqf index 1cb82ec..56d4d54 100644 --- a/addons/SA_AdvancedTowing/functions/fn_advancedTowingInit.sqf +++ b/addons/SA_AdvancedTowing/functions/fn_advancedTowingInit.sqf @@ -24,6 +24,9 @@ SA_Simulate_Towing = { private ["_lastCargoHitchPosition","_lastCargoVectorDir","_bbr","_p1","_p2","_maxCargoWidth","_maxCargoLength","_cargoLength"]; + _vehicleHitchModelPos set [2,0]; + _cargoHitchModelPos set [2,0]; + _lastCargoHitchPosition = _cargo modelToWorld _cargoHitchModelPos; _lastCargoVectorDir = vectorDir _cargo;