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"

2 players with a PlayerController, but BeginPlay is executed 3 times?

Hi,

I start in Preview 2 players without Dedicated Server. The PlayerController has a BeginPlay. BeginPLay is executed 3 times. When I start 3 players, BeginPlay runs 5 times. If I start as 1 player, then it is only run once. Is this a bug?

Product Version: UE 4.15
Tags:
more ▼

asked Mar 05 '17 at 11:13 AM in Bug Reports

avatar image

Dj EKI
36 14 10 16

avatar image Sean L ♦♦ STAFF Mar 06 '17 at 02:47 PM

In order to determine if this is a bug or not, I'll need more information regarding your setup. Could you please provide screenshots of your Player Controller and your Character blueprints?

Can you reproduce the issue in a clean project? If so, please provide a detailed list of repro steps.

Thanks

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

3 answers: sort voted first

Hey Dj EKl,

I am marking this topic as resolved for tracking purposes, as we have not heard from you in a few days. If this issue persists, feel free to respond to this thread. For any new issues, please create a new Answerhub topic.

Have a great day

more ▼

answered Mar 14 '17 at 12:54 PM

avatar image

Sean L ♦♦ STAFF
44k 485 149 438

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

No, it is by design. Client has an access only to it's own controller, server-player executes its own player controller and COPY of the other players controller.

Think about it: when you launch game for 2 players you have in fact 4 of them, every player has to spawn copies of other players in their own world (window). And please do not mistake player with it's controller.

Imagine that you would like to enlarge every other players nicknames (such thing actually could be in controller, as controller may possess different actors) hovering above their heads. Your local change would only affect your local copies of other players.

Check - for learning purpose - what happens for player blueprint and blueprints of objects placed on the level (not spawned in run time but check it as well).

more ▼

answered Mar 09 '17 at 05:44 PM

avatar image

ChopinDev
230 2 12 13

(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