Client send varible to fake server
Hey there , i was working on my project and i had to make event to send some player info using "Run on server" event, And when testing it i find that the varible is not shard between all client when replicated to all clients , this draw shows what i mean:
Am using player controller to store the varible from player to server here is the blueprint:
and here is a test i did , it print 0 when they are only one value on client 2
and when add another value in client 1 it should return 1 but it returned 0 again, Thanks and i hope i can get help.
asked May 26 '19 at 10:30 AM in Blueprint Scripting
By "fake server" you mean listen-server as opposed to dedicated server? You can't share info between clients on a PlayerController since each client only have their own PlayerController. If you want to share information you have to do it on an Actor or Pawn that is replicated.
Follow this question
Once you sign in you will be able to subscribe for any updates here