Hi.
I’m trying to figure out how to create a pure client configuration for a game.
For simplicity, assume that we’re working on a fresh third person C++ template, called Test.
I added a file TestClient.Target.cs with the following contents:
using UnrealBuildTool;
using System.Collections.Generic;
public class TestClientTarget : TargetRules
{
public TestClientTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Client;
ExtraModuleNames.AddRange( new string[] { "Test" } );
}
}
and I also created a target for the server, built it and it works fine.
How can I make the client behave purely as a client? So, that when I star it, it will attempt to connect to the server instead of first running as a standalone game? Where exactly do I catch it? Which classes run at the initialization process for the client?
Any info on the topic would be highly appreciated!
Thanks!