Prepped Build

This commit is contained in:
RAFAL SWIERCZEK 2024-02-02 14:56:54 +00:00
parent fe671e10fc
commit ade335d278
4 changed files with 12 additions and 2 deletions

View File

@ -17,6 +17,10 @@ void ABountyHunterCharacter::SpawnMainBounty()
if (MainBountyClasses.IsEmpty() || MainBountyClasses.Num() <= CurrentMainBountyIndex|| !IsValid(MainBountyClasses[CurrentMainBountyIndex])) if (MainBountyClasses.IsEmpty() || MainBountyClasses.Num() <= CurrentMainBountyIndex|| !IsValid(MainBountyClasses[CurrentMainBountyIndex]))
{ {
AllBountiesCompleted(); AllBountiesCompleted();
if (CurrentMainBountyIndex >= 2 && !(UGameplayStatics::GetCurrentLevelName(GetWorld()) == "EnemyAITest"))
{
UGameplayStatics::OpenLevel(GetWorld(), FName("EnemyAITest"));
}
return; return;
} }