Update bots.h

implement GetRandomBotNameGeneric function into bot summoning
This commit is contained in:
Jagger Tavarez
2024-03-21 20:40:44 -04:00
committed by GitHub
parent 936ae93828
commit 7e8b95e80c

View File

@@ -294,7 +294,14 @@ public:
Controller->Possess(Pawn);
}
auto BotNewName = GetRandomName();
FString BotNewName = L"";
if (Globals::bUseGenericRandomBotNames) {
BotNewName = GetRandomBotNameGeneric();
}
else {
BotNewName = GetRandomName();
}
LOG_INFO(LogBots, "BotNewName: {}", BotNewName.ToString());
SetName(BotNewName);
@@ -456,4 +463,4 @@ namespace Bots
namespace Bosses
{
}
}