GameMode Reference always NULL (Multiplayer)
after several hours of bug tracking I finally managed to track down to a very big problem, as the GameMode-Reference I get from GetWorld()->GetAuthGameMode() returns always NULL, but only on the client. The same code is also executed on the Server and works fine. Any ideas? (I basically do nothing with the GameMode besides getting a reference to it in the whole game, so there are no modifications which could lead to a NULL-Pointer) Here is the code snippet of the problem ..: (basically just Logging, but it always logs: "GameMode == NULL, ArenaCharacter.cpp : OnDeath")
Thanks in advance!
asked Aug 08 '14 at 01:14 PM in C++ Programming
GameMode is a server side only object. The GameState object is what is used to replicate the GameMode state to clients. This is analogous to PlayerControllers and PlayerStates. The PlayerController only exists on the server and the client that owns it, all others can only interact with the PlayerState
answered Aug 09 '14 at 12:42 AM
I don't think the GameMode is replicated to the clients. I believe it is on the server only, and the GameState is replicated.
answered Aug 08 '14 at 11:50 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here