Changing material of character on network?

Hello,

I need help for changing material on a character on network. I’m really confused as to why it’s not working.

Here is how I do it:

This is my character blueprint where I tell him to change his mesh color depending on his color variable. I tried it and it works in certain situations but never replicates properly (note: here I said “run on server” but I tried “multicast” and it’s not working either). I’m wondering if I’m doing this the right way.

Here is my other blueprint (the gamemode one that sets the variable from a save file):

The color variable is fine but I’m wondering if “Begin play” is executed before “Possess” or not.

Anyway, I tried everything with “Authority” too and it’s not working either. When I experiment with the functions, sometimes only my client can see the colors properly, sometimes only the server… I’m lost as to how I could make it work on both…

Thank you!

I got the same issue, i am currently making an online fps game inwich you can choose teams. Before i had three separate actor blueprints. (Spectator, blue, red) and that worked but wasn’t practical as when i made changes to one, i had to change everything on everyone else. So i tried to delete two of the actors and use only one and change the material when it spawns so i know what is what. The material shows changes locally, but not to network.