Unity3d Car

How do I make a car you can enter and drive around in?

Using RPC calls?

Comments

  • Assuming you just want a general hint: Yes. You could use RPCs for that.
  • Is they any other way to do this?
  • There is always another way.
    At the moment, PUN does not support that the ownership of an object changes, so you have to work around this.
    You could take a look at PUN's Pickup Demo. It shows how to pickup an item. If you pickup a car, the player's character basically turns into the car. You no longer control a biped character but a vehicle on wheels. This switch can be done by RPC and then all clients can show a car in the position of that player.