Hi. I’m a student making a game as my final year project in UE4. And it is just awesome!
I need help.
I need to make a passenger to sit in my vehicle (Rickshaw/Taxi) and i am on a point where my character actually detects the taxi and runs to it to sit into it. But i can’t do the SIT part (I HAVE THE SIT ANIMATION). How do i make it sit in my vehicle as a passenger?
Any help would be so appreciated. Thank you.
This my blueprint for character to get to rickshaw. And it works. Kindly Tell me how to make it sit in the rickshaw. (I HAVE THE SIT ANIMATION)
THANKS IN ADVANCE. Hope someone replies.
I’m assuming you are going to possess the rickshaw.
Add the sitting mesh to the rickshaw mesh in the blueprint but in the rendering uncheck the visible. After the “enter vehicle” animation do a set visible for the mesh.
Integrating a passenger into your taxi vehicle within Unreal Engine 4 involves several key steps. First, ensure your vehicle’s skeletal mesh includes a properly positioned socket at the desired seating location. This socket serves as the attachment point for the passenger character. In your character’s Blueprint, after detecting and approaching the taxi, use the “Attach Actor to Actor” node to link the character to the vehicle at this specific socket. Once attached, trigger the sitting animation, ensuring a smooth transition that enhances realism. This method effectively simulates a passenger entering and sitting in a vehicle within the game environment.
Id use “attach actor to component” if the seat itself is a component attached them to that or setup a box collision as a placeholder for the character to attach to
The city lights cast a warm glow on the streets as I pulled my taxi to a stop beside the curb. The passenger, a young professional in a tailored suit, hesitated for a moment before stepping into the backseat with a sigh of relief. He placed his leather briefcase beside him and settled in, the faint scent of cologne blending with the aroma of the car’s freshener. The door closed with a reassuring thud as he fastened his seatbelt, glancing up to meet my eyes in the rearview mirror.