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"

Multiplayer Team Setup Problem

So I have been trying to set-up a multiplayer team selection menu where you can choose blue or red team. I have a String var in my PlayerController, and whenever the player clicks on the blue team button (From my team selection widget) it sets the string to "BlueTeam" and when clicks on red "RedTeam". THE PROBLEM is that only the Host (or basically the player that joins first) can change teams. Otherwise the other players will get "Cast Failed" from the GameMode. Here are some screenshots from the things I just talked about:alt text

alt text

alt text

alt text

I can supply more screenshots if needed. Please let me know what im doing wrong, im new to multiplayer and I really do want to learn more.

Product Version: UE 4.14
Tags:
screen1.png (166.5 kB)
prblm2.png (142.5 kB)
prblm3.png (231.1 kB)
prblm4.png (307.7 kB)
more ▼

asked Jun 10 '18 at 12:01 AM in Blueprint Scripting

avatar image

Sntfon100
78 11 14 19

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

After hours of researching I have finally managed to come with a solution! I had to use PlayerState since only the Host has acsses to the PlayerController. If someone reads this and needs more info please let me know I am willing to help! Im just too tired right now to write more xD Here is my bp (Hope this helps someone):

https://imgur.com/a/9mFPDkZ

https://imgur.com/a/4fXS4OV

more ▼

answered Jun 10 '18 at 05:18 AM

avatar image

Sntfon100
78 11 14 19

(comments are locked)
10|2000 characters needed characters left
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