I had a player controller that let me drive in a car in version 5.2. I since made a new player controller and tried to bring the code over to the new one, but instead won’t let me drive AND gives me errors.
What do I change?
The errors also pointed towards a missing vehicle hud. You either need to switch dynamically to it or remove whatever is calling get vehicle hud because it is none.
Your vehicle class also needs to have input setup for turning, acceleration and braking that reacts ti your input.
My vehicle is the UE5 starter car. I just added a different mesh over it, the base controls are still there and it worked perfectly before I moved the code over.
I even went to the original vehicle player controller and posted the code back in, but even that DOESN"T WORK now. It was the exact same code from before, but it refuses to work.