My enemy car rotation has a problem, its handling is 7, or what is added to the rotation. the problem comes with turning, lets say the cars ideal rotation is 55, right now our rotation is 50. It will first turn to 57 then to 50, then to 57 then to 50. Is there a way I can set up a range on the ideal rotation, such as if car is greater than 57 - 10, and less than 57 + 10. I then tried
if (Car._rotation>(Car.ideal-10) and Car._rotation<(Car.ideal+10)) {
Car.TURNLEFT = false;
Car.TURNRIGHT = false;
}
Only to learn, that script fails to work at all…
I’m not to good with rotation, or even math for that matter…