Please see the question. Some screenshots:
BeginPlay in GameMode
OnPostLogin in GameMode
Output Log:
Is this expected? Shouldn’t BeginPlay always execute before OnPostLogin, even for the server?
Please see the question. Some screenshots:
BeginPlay in GameMode
OnPostLogin in GameMode
Output Log:
Is this expected? Shouldn’t BeginPlay always execute before OnPostLogin, even for the server?
This is so for the playercontroller of the server, the others (Clients) are executed after the BeginPlay
"AGameMode::PostLogin
Called after a successful login. This is the first place it is safe to call replicated functions on the PlayerController."
If somebody met this problem what you can do is to put all initialization logic not for begin play but for overriden InitGame function, so it will always be executed before PostLogin