I know How to Do pawn possession and right now I have a single Air Transport Vehicle I can jump in and out of.
But moving forwards I also want to have multiple types of vehicles, ACP’S, Tanks, gunships, Jeeps, Mechs, ect.
My set up is a vehicle with a collision box around it that detects overlaps with my player character, if hes overlapping an internal bool is set to true EG: can enter.
The issue I ran in to is My character controller is getting all actors of class and and looking for the can enter bool and possessing it, if can enter was true.
But as I want many types of vehicles I am confused as to how to call all types and not just the single vehicle class. So I created an empty Pawn with some common variables and re-parented that vehicle to it and was planning to use that for all types so they can inherit the basic possess logic ( the possession bit worked fine But as my Vehicles are using physics they weren’t working correctly.
Has anyone got any good tips or advice on best practice to possess multiple vehicles types