Source/CoopHordeShooter/Private/AI/CSTrackerBot.cpp
void ACSTrackerBot::BeginPlay()
{
    Super::BeginPlay();

    if (Role == ROLE_Authority)
    {
        NextPathPoint = GetNextPathPoint(); 
        GetWorldTimerManager().SetTimer(TimerHandle_CheckNearbyBots, this, &ACSTrackerBot::CheckNearbyBots, CheckNearbyBotsInterval, true);
    }
}
// Called when the game starts or when spawned
Called when the game starts or when spawned
Called when the game starts or when spawned
void ACSTrackerBot::BeginPlay()
{
    Super::BeginPlay();
    if (Role == ROLE_Authority)
    {
        NextPathPoint = GetNextPathPoint(); 
        GetWorldTimerManager().SetTimer(TimerHandle_CheckNearbyBots, this, &ACSTrackerBot::CheckNearbyBots, CheckNearbyBotsInterval, true);
    }
}
void ACSTrackerBot :: BeginPlay ( ) { Super :: BeginPlay ( ) ; if ( Role == ROLE_Authority ) { NextPathPoint = GetNextPathPoint ( ) ; GetWorldTimerManager ( ) . SetTimer ( TimerHandle_CheckNearbyBots , this , & ACSTrackerBot :: CheckNearbyBots , CheckNearbyBotsInterval , true ) ; } }
Called when the game starts or when spawned
Called when the game starts or when spawned