After a week I finally decided to give in and ask for an answer instead of googling my brains out. I’m quite a beginner and have worked on UE4 on and off for about a year or so.
I wanted to make a “board game” replica and I am having trouble of finding a solution or a workaround for my idea.
Basically what I want to do is I have money in the game in two variables cash and bank. On my widget I can transfer the money between them. Ex. I have 10 000 in bank, I type 500 into the text field on my widget and transfer it to cash. Which works fine but obviously not on server cause widget is not replicated by server.
So I’ve been looking for a way to replicate this variable from the widget to the server as well but with no luck. I end up either getting the same value for the client as the server has or just the default value from beginning. I hold these variables for the server in the player state, but I cannot seem to change this variable from widget on the client side.
Is there a way to get a variable from client as a server or am I trying to accomplish the impossible.