I looked at your project, I think maybe if you make an invisible object that has follows the Y position of the mouse always but only follows the X position of the mouse if it is in front of the truck. Then have the turret point at this object instead of the actual mouse position.