Hello everyone,
I’m currently creating a multiplayer racing game. Players can modify their car and race with others. However, the modified cars can only show locally. How can I show the modified player prefab across the network so that the server can spawn the modified object?
Any reply would be appreciated, thanks.
Pass metadata of parts which you want to be changed on the server, broadcast that data to other clients and apply changes.
Or you can build car from metadata passed to the server after player joined.
Thank you for your reply. But what should the metadata be? Should it be an array? And how should I pass it on server?
Depends on your needs. It could be a struct with basic-type vars. Use Cmd to pass it. Use Rpc to broadcast it.
I see, thanks a lot! I will have a try later!