Hello.
Did anyone had this problem or bug?
I work on lobby menu. In my **GameMode ** in event OnPostLogin i add new connected player to array **AllPlayers ** - in this array all player controllers
After that in my player controller i start function PCSetupLobbyMenu which is create lobby menu(widget) on connerted client. Function type - Run on owning client
After that i use function GMUpdatePlayersListInLobby (run on server), this function are in GameMode.
Function GMUpdatePlayersListInLobby
In this function every player controller run function PCUpdatePlayerLists (Run on owning client).
In this function i get GameState and for each element in GameState->playerArray i create widget add it as child in my PlayerList Widget.
All works, but works only with delays
I use delay in PlayerController->EventBeginPlay 0.1 second and in PlayerController->PCUpdatePlayerLists - 0.3 seconds
It doesn’t work without delays because when PlayerController->EventBeginPlay GameState doesn’t exist on client.
Am i right or problem in something else?
How to fix that and work without delays?
Anyone know in what oder UE4 create classes and start game?