Cannot create/connect server with c++ code.

ps. Oh gosh, I just found out that Shooter’s EntryLevel always start out as a listening server. How do you do that?

For now I have to use this as a work around. Basically if a game front isn’t a listen server then immediately reopen it with ?listen. I hope someone can show me a better light though…


void AFrontGui::BeginPlay()
{
	if (GetNetMode() != NM_ListenServer)
	{
		mWorld->ServerTravel(TEXT("/Game/Maps/GameFront?listen"));
	}
}