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"

Tick() is called before BeginPlay() on Client's PlayerControllers (i.e. bAllowTickBeforeBeginPlay == TRUE by default)

Hi all, I've run into an interesting (i.e. been trying debug this for the last three days) behavior with a REPLICATED PlayerController. That is, this behavior only shows up on the Client side.

I'll start with the behavior itself: bAllowTickBeforeBeginPlay is set to TRUE by default on the Client side. I've also checked that it's defaulted to false in the local/server side, so this behavior seems isolated only to networked environments.

My question is, is this a bug or intended behavior? I ask because I'm trying to decide whether to remember to code around this for all Client-side PCs or just wait for this to be "fixed" later.

Also, to be clear, I'm not necessarily asking for this to be changed. Rather, I want to know if this was set to TRUE by default on the Clients' side on purpose (i.e. for some under-the-hood concerns). And if it's not, I guess I should simply set bAllowTickBeforeBeginPlay to FALSE at the contructor from now?

Product Version: UE 4.17
more ▼

asked Sep 29 '17 at 04:35 PM in C++ Programming

avatar image

40 5 11 14

avatar image Orakga Oct 24 '17 at 04:45 PM

Okay, so I think this is intended behavior. Turns out this is set to TRUE on the BP object. Still not sure what the reason for this is, but at least it's not a bug from what I can tell.alt text

capture.png (7.5 kB)
avatar image Orakga Dec 29 '17 at 05:34 PM

Additional observation: even if the C++ code sets bAllowTickBeforeBeginPlay to FALSE, once you convert it into a BP, the default TRUE setting on the BP object overrides the C++ constructor setting.

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

0 answers: sort voted first
Be the first one to answer this question
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