Player array in the game state has the wrong player state classes
As explained in the title, when calling "player array" from my custom game state I don't get the classes I'm supposed to get. I have:
I checked to have correctly set my game mode and its defaults
But on the server it still has the player state that I had in the previous level (which has a different game mode with different classes) and trying to print the player state class name (using a switch on authority node to differentiate between server and clients) confirm that on the server the clients don't have the right class
That said, on the clients they do have the right class but they often don't have other's client references
I think I found the problem: I didn't let the engine load and replicate the new objects.
A simple delay of half a second was enough to load everything properly.
answered Mar 25 '18 at 05:15 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here