player who get into a car

Hello to everyone

I m searching for a way to programme this:
a man from the street(walk on the street) who get into a car and drive.

( like GTA for exemple :wink: )

I don’t know how I must do that.
I already know how to do a man who walk on the street, but how to do the task for get the man(controlled by the player of course) into a car and drive?

If you don’t understand me :stuck_out_tongue:, look at this video :

how to do the action from 00:03 to 00:06 ? (get into a car)

thanks in advance :slight_smile:

if ( player is near car AND player hit the enter button)
place player inside car, switch to car- movement,place camera…

to check if the player is near the car you could either use collision spheres or write something on your own. if you already have the player movement the car stuff itslef shouldnt be that hard either.