Prerequisites:

you need to add nav mesh bound volumes for navigation in your Level

<1.> Add this component

AC_PawnToPossessRide

the system is based on slots that correspond to sockets.

there are different types of sockets :

A pawn is defined through a main type and sub-types, which are defined as enums. These are useful for switching animation sets and montages based on the type. In this system, all animations are stored either in a data asset or as variables in the animation blueprint, using interfaces. This is a recommended best practice.

<2.1> Add Rider slot

socket in which the player sit:

Screenshot 2024-05-18 020243.png

add array for each possible char enter riding Slots locations:

Screenshot 2024-05-18 020333.png

"SlotEnterRideL" is the socket where it is spawned the slot in which the character can enter/exit the pawn. The term "left" refers to the direction name of the slot, which provides information for playing animation montages.

<2.1> Add Passenger slot

same process on rider slot but in a single array, add an array element for each passenger slot.