x

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"

Can't set array container map variable bool value to true in multiplayer

Hello everyone, Im trying to set a different color to each player when the game session begins, the array container has the Color and a Bool on each index, at the end of the For Each, I set the bool to true, so the color doesnt repeat but everytime I run the game all players have the color set only to the first index. I tried adding a Print to tell me if the variable was set to true sucessfully and the print returns true if I put it right after the Set Array Element, but if I set a key input and get the variable, it returns false... Anyone has any idea of what could be the problem? The container variable container is located in the Game Instance

Product Version: UE 4.19
Tags:
more ▼

asked Aug 01 '18 at 04:23 PM in Blueprint Scripting

avatar image

notrealvitor
39 6 6

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

1 answer: sort voted first

I realized that those map container variables could not be replicated so I separated the big map into two arrays and set it to replicate and it worked! I was strugging with this for a few hours but after working on the question I endend up being able to solve, I apologize if this is a unecessary post, I would delete but maybe it helps someone with the same problem

more ▼

answered Aug 01 '18 at 04:57 PM

avatar image

notrealvitor
39 6 6

avatar image Everynone Aug 01 '18 at 06:09 PM

Do not delete it, mark your own answer as resolved.

(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