void ATower::Firing()
{
float Dis = FVector::Dist(GetActorLocation(), Tank->GetActorLocation());
if (Dis < PlayerIsClose)
{
FTimerManager::PauseTimer(FireTimer);
for (int i = 0; i < StreamAmount; i += 0)
{
if (StreamRate <= 0.f)
{
Fire();
i++;
StreamRate = SR_Reset;
}
}
}
}
How are you suppose to use Pause Timer function from FTimerManager? For now I keep getting the error cs2352. The API documentation is of no help (as in example how to write it).