Why is variable not getting replicated?

Hi there,

So there are three PlayerControllerBP instances is exist, One is ListenClient, One is just a Client and one is replicated copy of a Client PlayerControllerBP at Listen Client, thats how i understand it. Im creating widget for each of them and save It to a variable, so i can get access to it from any other BP on a server.

Here how im creating Widget

A)

http://puu.sh/jD0DD.png

B)

http://puu.sh/jD1WG.png

And here how it can easy test replication.

http://puu.sh/jD0sb.png

My problem is, 3rd Replicated copy of PlayerControllerBP doesn’t have Widget variable updated when i create widget as on A screenshot, even if variable set to be replicated. And either of them, local and on server doesnt setup if i make it as B shows. Workaround is to create Custom Local event to handle every single action, but i don’t like that idea at all.
Can someone help me?

For the custom event, create an input pin, and link the variable to that, then when you call the event on the server, drag the output pin to the correct place.
This will pass the variable from client to server.

As far as i can remember the server cant read the local variables within events just by being replicated.

As on Sceenshot B ?

I made this

http://puu.sh/jDIED.png

at its doesnt seems to work with my test setup which you can see on third screenshot

Widgets are not replicated. Simply draw the data that drives the widget from replicated variables and you should be fine.

When i was testing that, my main project wasn’t completely networked and calling custom event on owning client from another blueprint just doesnt return a widget. So, i made huge and ugly workaround which is actually worked, Than i read your post and decided to try it again, which is was literally changing one link in one custom function and it worked. Now i can sleep.