I need to control a vehicle with two players, how should I implement this? I could not find information on how to get the pawn control from two controllers. Can you tell me how to do it more correctly?
Depends on what you literally need to happen.
It is a driver and a passenger, or does the passenger actually control something?
If just a passenger you simply attach Actor to Component, disable movement input etc. You don’t un-possess them.
Otherwise the vehicle has to be 2 actors attached. e.g. Tank + Turret.
Attach the turret to tank, driver possess tank, passenger possesses turret.