Actor array in Game State not replicated
I am creating an RTS in UE4. I'm trying to use game state to replicate each faction's units references.
On the server, the values appear as expected but on the client, the array appears with "None" instead of a reference.
Adding to the structure:
The replication settings on this object:
Getting stuff from gamestate:
The unit itself is also replicated.
I initially had a map but I know it is not replicated, so I switched to a array. I don't know what could be the problem..
Can anyone help me?
asked Oct 04 '17 at 12:06 PM in Blueprint Scripting
Are you sure you do all this stuff on the server? If you fill the array on one of the clients, the change will not persist as server values override client ones when replicated
answered Jul 16 '18 at 09:57 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here