I was trying to set a drivable car. But after I add the car and go into game mode, I can’t control the car. I can’t drive it. Do I need a gamepad control? I thought the keyboard controls would be sufficient? Thanks.
Bumping this up as it seems to have vanished from the main page.
Hello,
What version of the engine are you using?
I assume you’re wanting to control a Chaos vehicle.
Make sure that the ChaosVehiclesPlugin is enabled in your project. (Edit → Plugins)
Also, you can add the Vehicle Template to any project with Content Browser → Add → Add Feature or Content pack. (Could be useful for testing other vehicles)
Chaos Vehicles are set up to use the new ‘Enhanced Input’ system by default, and the template will show how to implement it.
Let us know if you’re still having troubles!
Hi! Thanks for the reply. It’s UE 5.1. I will have to check if the plugin is enabled and report back.
Ok, I can confirm the ChaosVehiclesPlugin is enabled. But I still can’t drive the car.
Thanks for checking,
If you created your project with 5.1 then ‘Enhanced Input’ should be enabled/set.
If you created it with 5.0 or earlier and upgraded: Enable the ‘Enhanced Input’ plugin and set Project Settings → Input → Default Classes to use the “Enhanced” variants.
Then I’d either add the vehicle template project or create a new vehicle template project to see an implementation of the input system.
Thanks again. I created it in 5.1. So when checking the plug in was indeed already enabled. It seems the Default Classes are also correctly set:
You’re welcome. Assuming the foundational input things are configured:
Try running this logic on BeginPlay:
I have now managed to make it work. I can now normally drive the car with WASD. Thanks for all the help!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.