Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Some screenshoots:

Adding to the structure:

alt text

The replication settings on this object:

alt text

Getting stuff from gamestate:

alt text

Different behaviors:

alt text

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?

Product Version: UE 4.16
more ▼

asked Oct 04 '17 at 12:06 PM in Blueprint Scripting

avatar image

64 9 18 22

avatar image Taikatou Jul 10 '18 at 12:38 PM

Did you get an answer to this?

avatar image JackcaJ2314 Jul 10 '18 at 12:42 PM

You just have to give it time. Eventually it will get replicated.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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

more ▼

answered Jul 16 '18 at 09:57 AM

avatar image

345 4 4 12

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question