Changing _cargoHitchModelPos & _vehicleHitchModelPos to always have Z set to 0

This commit is contained in:
sethduda 2016-03-07 12:13:48 -05:00
parent 33a7ba0b62
commit 6cf7f04dac

View File

@ -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;