Hi thereI am using UE 4.13.2 and I am fallowing the battery collector tutorial from UE. I wanted to disable tick in the game mode just to see whether or not it is possible (which should be). I’ve built and compiled multiple times yet I still get the message “Tick gets called”. Any ideas why is that? Thanks in advance!
void ABatteryCollectorGameMode::BeginPlay()
{
Super::BeginPlay();
BCCharacter = Cast<ABatteryCollectorCharacter>(UGameplayStatics::GetPlayerPawn(this, 0));
PrimaryActorTick.bStartWithTickEnabled = false;
PrimaryActorTick.bCanEverTick = false;
}
void ABatteryCollectorGameMode::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
if (BCCharacter)
{
// Draw power from the Battery Collector Character
BCCharacter->AddPower(-BCCharacter->GetInitialPower() * DrawPowerRate * DeltaTime);
UE_LOG(LogTemp, Warning, TEXT("Tick gets called"))
}
}