How to change a material and watch the change in dedicated server?
I just did a dedicated server, but when I open a clien window, and change the material of a mesh, I can't see the change in other multiplayer windows.
It seems to be that I just can see the player moving around the scene, from different windows, but can't interact with the enviroment.
Am I missing something?
asked Apr 19 '17 at 10:55 PM in C++ Programming
In multiplayer the server has authority over all replicated actors except for Player pawns. Each player has authority over its own pawn. When you create an actor from code running on the client that object will be local, that means that other players wont see it, not even the server. If you want an actor to be seen by all players you need to spawn it server-side (and it needs to be a replicated actor). If you want to change the material, call a Client->Server RPC (client to server function) from the client that will run on the server. When you change the material from the mesh running code on the server other players will see it, otherwise they wont. Networking is very complex, I'm still struggling to make an inventory system work in multiplayer in C++. Btw, sorry if I made grammar mistakes, my main language is not english and I don't have the english dictionary installed on this browser :p.
answered Apr 20 '17 at 02:46 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here