Client change character mesh across game
I am currently having an issue with replication. I have a host and multiple clients that are within a game and when a player joins, they get a local setting which states which character mesh they are using. From there I want to change the skeletal mesh of the character and make sure it gets update across everyone in the game. All of the players are using the same character blueprint but I want to change the mesh for that current player. I have tried using a remote call to the server but then every character changes and it can only be seen on the one client. I am not sure how to achieve this in blueprints.
asked Mar 07 '15 at 10:10 PM in Blueprint Scripting
I managed to figure it out using the player controller blueprint and a custom event within the character blueprint that is a server RPC. I also used an update variable in the character blueprint that is repNotify so that if new players join they will also get the update. On the notify for the update variable it will change the mesh. In the custom event, it will update the variable which will trigger the on notify script within the blueprint. I used a switch authority on the player controller blueprint to call the custom event and it only happens on remote authority. Then for the host to change character I called the custom event from the Game blueprint because the host has control over that one. Sorry for the long and convoluted answer.
answered Mar 08 '15 at 06:04 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here