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.
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.
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.