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 Health Widget Creation

Greetings, I’m currently attempting to create widget health bars for a multiplayer project. Below is how I create the widget for single player.

alt text

I have used the Switch has Authority, but I fear I haven’t put it to proper use. I need to create the widget only on the players client and add it to his viewport alone.

I’ve browsed the web and couldn’t come up with anything helpful.

Product Version: UE 4.9
more ▼

asked May 31 '16 at 10:31 PM in Blueprint Scripting

avatar image

52 12 17 24

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

2 answers: sort voted first

Create the widget in the player controller, and set "self" to the owning player. Then each client with have their own, single instance of their widgets.

more ▼

answered Jun 01 '16 at 01:37 AM

avatar image

1.5k 65 132 103

avatar image Van2015 Jun 02 '16 at 02:54 AM

Thanks, seemed to work!

avatar image Samuelb Jun 17 '17 at 11:16 AM

self reference can't be added to owning player.. edit: nevermind i'm stupid

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

Looks like you are new to Networking read this guide made by eXi it makes a lot of things clear if you still got trouble solving the Problem let me know and Post me what you got after that nice read http://cedric.bnslv.de/Downloads/UE4_Network_Compendium_by_Cedric_eXi_Neukirchen.pdf

Credits to eXi for that Answer

more ▼

answered Jun 01 '16 at 12:30 AM

avatar image

6.9k 143 26 172

avatar image Van2015 Jun 01 '16 at 01:02 AM

Nice read indeed! lol. This should help quite a bit, thanks for the recommendation.

(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