How can I properly attach a character to a vehicle?

I followed the [How to Possess Pawns Blueprint][1] tutorial and modified it to use RPCs and tried attaching my character to the front seat of the sedan. I added a socket on the drivers seat to attach my character to the sedan. On the server, the character appears to be properly attached to the socket. When testing on the client, however, the player will slide around the socket location as the sedan is changing pitch or roll. If you try entering the sedan while moving (on the client), the character still gets attached to the sedan and i can start driving but the character will be on the outside of the vehicle moving away. Also, when I try to get out of the vehicle on the client, the character appears at the spawn location and is properly possessed, but the pitch and roll of the character are still what the sedan was at the time of exit. On the server, the pitch and roll are properly reset so the character is standing upright. Any ideas on how to fix these issues?

So I’ve tried attaching my character to the sedan by calling attach actor to actor every tick in the sedan blueprint but that doesn’t seem to make a difference. Does anyone have any suggestions? I’m pretty stuck with this one.

don’t use attach actor in a version4.7 networking project, it does not work correctly. One workaround could this:
put an character into your car blueprint (hidden by default) and display it when the car is possessed. Meanwhile, you hide (or destroy) the “real” character and make it visible again when you leave the car.

How do you make character pulling a vehicle work in 4.10?

That code works now I tested it in 4.12

Glad to hear it works!