How to drive a car like in GTA?

The car is from vehicle example, the default vehicle:

Im on first person example, and I want that, if the player is a minium distance, with key ‘Q’, it begin driving the car, and if it press ‘E’, it leaves the car. Its possible? Thanks anyway…

Hey @DrFrankNortonCMV!

You can check out this tutorial:

Hope this helps :blush:

Thanks! But im stuck on this part:

In the class filter doesnt appear ‘car’ or nothing like it, so… how to modify it?

Do you have a blueprint class for your car in the first place? If you don’t, create one and select it from the dropdown menu. If you do already have one though, you can just search for the name you’ve assigned to it.

Im on this and what i would can create a sport car class?

Right click on your content browser, hit the Blueprint Class option, select it’s type as Pawn, double click on your new pawn class blueprint to open it and inside, navigate to the Components window on the top left, click on the Add button with a green plus icon on it, search for “skeletal mesh” and add a skeletal mesh component, then while having the skeletal mesh component selected in the Components window, navigate to the Details window on the right side, type in “mesh” into the searchbar, and under the Mesh section, you’ll see a property called Skeletal Mesh Asset. Click on the dropdown menu next to it which by default should say “None”, and select your car SKM :blush:

Still doesnt understand. Do u have any blueprint?

We can do a quick Discord if you like :cowboy_hat_face:

Ok, lets go.

It might not be a good idea to share your DC username publicly so you can do that from the private messages on this platform

What do u mean?

Just check the top right corner of your screen where your profile picture is. Click on it and you should see a private message notification at the top. That’ll direct you to the private message I’ve just sent you.

I solved a part of the trouble, i can move inside a vehicle, but the trouble is that the vehicle isnt is that is the nearest, and the player jumps far, far away and gets ‘inside’ a vehicle which is in the furthest distance, this is the blueprint:


Any solution? Thanks anyway.


I took advantagements. Now the vehicle which player enters in is the nearest campervan.

Or that, i think…

im now stuck on this:

I already did those two functions:
One in the car:


And one in the player:

But still, in the new fresh proyect i cant move the car. Why?

I found the solution.

This is the player part:

This is the vehicle part:



This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.