From c53b0b78302bd6c6a24b0066875731e86f829af6 Mon Sep 17 00:00:00 2001 From: Arnaud Jamin Date: Wed, 10 Jan 2024 00:22:30 -0500 Subject: [PATCH] Update README.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index dec4549..b90b477 100644 --- a/README.md +++ b/README.md @@ -375,7 +375,19 @@ void ACogSampleGameState::BeginPlay() - Tick the CogWindowManager: ```cpp + // ACogSampleGameState.cpp +ACogSampleGameState::ACogSampleGameState(const FObjectInitializer & ObjectInitializer) + : Super(ObjectInitializer) +{ + // Enable ticking + PrimaryActorTick.bCanEverTick = true; + PrimaryActorTick.SetTickFunctionEnable(true); + PrimaryActorTick.bStartWithTickEnabled = true; + + [...] +} + void ACogSampleGameState::Tick(float DeltaSeconds) { Super::Tick(DeltaSeconds); @@ -386,6 +398,8 @@ void ACogSampleGameState::Tick(float DeltaSeconds) } ``` + + - In your PlayerController class, spawn the Cog Replicators. The Replicator are used to communicate between the client and the server, for example to apply cheats, spawn actors, etc. ```cpp void ACogSamplePlayerController::BeginPlay()