Is it best to have the server or a client own a vehicle? Right now the client owns a driver pawn, not the vehicle itself. So when I try to call a RPC within the vehicle it doesn’t respond to the client. As I understand, it’s best for the server to still own the vehicle. So how do I get the vehicle to respond to input from the client and the vehicle events to still replicate?
This is within the widget for the driver pawn to call an event on the vehicle
Actually the pawn the client is controlling is not the vehicle. Their pawn (I called it a passenger pawn) is attached to the vehicle. Other players can posses passenger pawns that are attached to the vehicle as well. The idea was that each player would control a portion of the vehicle. In this case the player would start the movement of the vehicle (projectile movement). They would also modify the velocity. Other players will control weapons, shields, etc. So it made sense to me that the vehicle should remain owned by the server. Does that make sense?