Variable in GameState only being modified on Client side
I am trying to modify an array variable located in my custom GameState, WITHIN my custom GS blueprint, and only the client recognizes the change, not the server. I know this because I have the length of the array print on Event tick. Client prints correct amount, server prints 0. The variable is set to Replicated. I'm stumped. Any idea why?
asked Apr 09 '18 at 05:51 AM in Blueprint Scripting
thanks man saved me after 8 hours , for anyone with my problem : you cant change variable of gamestate / game mode from HUD even if you set the event as RunOnServer , you have to cast from HUD to Player Controller and run on server from there . (you are client in my example if you are server it doesn't matter)
answered Jan 28 '19 at 09:10 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here