I’m fairly new to networking and am having trouble adding vehicles to my multiplayer FPS project.
Currently, you can choose a class, spawn, and run around. That all works fine. But now I’m trying to add vehicles and don’t quite know what I’m doing.
I’m just not sure how to go about doing this. Currently the player can get in the vehicle and drive it, but any other player can as well. It needs to check if there is already a player in it before letting another take the driver seat. In addition, I’d like it to make the Network Owner of the Vehicle whoever is in the driver seat. The other seats of the vehicle would just have the other players in it parented to it. I’ve noticed when the server owns the object as in my current setup when using Network.Instantiate, if a player tries to drive it and has a slow connection its like having an authoritative server and shows noticeable lag and makes it hard to drive. This game is for Android. I really don’t need/want an authoritative set up for this.
So I guess to summarize, how would I go about setting up a multiplayer vehicle system (with vehicles that have multiple seats) while making the driver the network “owner” of that vehicle so they have the smoothest experience when driving? Any help is appreciated.