# Getting in and out Add **DRCRider** (`UDRCRiderComponent`) to your character. Its class does not change. | Call | Where | What it does | |---|---|---| | Try Enter Nearest Vehicle (Want Driver Seat) | Owning client or server | The nearest vehicle within **Enter Distance** (4 m to its body) with a free seat: the driver's seat when asked and free, otherwise the first free one | | Try Exit Vehicle | Owning client or server | Gets out. The driver asks through the vehicle, since its controller now has the vehicle | | Try Change Seat | Owning client or server | To the next free seat. Out of the driver's seat the controller comes back to the character; into it, the character's controller takes the vehicle | | Find Nearest Vehicle | Anywhere | The vehicle Try Enter would pick, for a prompt ("press E to drive") | | Enter Vehicle, Exit Vehicle, Change Seat | Server | The same, now, without the distance check | | Is Driving, Get Vehicle, Get Seat Index | Anywhere | Where it sits | | On Entered Vehicle, On Exited Vehicle | Every machine | After the seat changes (On Entered also after changing seat) | Sitting, the character's collision and movement are off and it is attached to the vehicle's **Visual** at the seat's **Sit Transform**, so it moves with the drawn car. In the driver's seat its controller takes the vehicle. Getting out, the controller comes back to the character and it stands at the seat's **Exit Offset**; if that is blocked, on the other side; if both are, on top of the vehicle. The exits are taken level, around the way the vehicle faces, so getting out of a car on its side or roof puts the character beside it, not under the ground. A car that rolled over goes back on its wheels with **Flip Upright** on the movement component (server), or the driver's **Server Request Flip Upright** on the vehicle (the **Flip Upright Action**). It only works when the car is tipped past 60 degrees and nearly stopped, and not on a truck with its trailer hitched. Seats are on the vehicle (**Seats**: name, sit transform, exit offset, driver, hide rider). The default is a driver and a passenger. **Hide Rider** (on by default) hides the character while it sits there, inside a car or a cab; turn it off where the rider shows, on a motorbike. Passengers keep controlling their own character (camera, aim) while they ride. The sitting pose is your animation: use **Is Driving** or **Get Vehicle** in your Animation Blueprint. With nobody in the driver's seat the vehicle holds its handbrake.