From 7e8b95e80c2cb547e784670121da7d96351af01f Mon Sep 17 00:00:00 2001 From: Jagger Tavarez <55355558+Jagger24x24@users.noreply.github.com> Date: Thu, 21 Mar 2024 20:40:44 -0400 Subject: [PATCH] Update bots.h implement GetRandomBotNameGeneric function into bot summoning --- Project Reboot 3.0/bots.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Project Reboot 3.0/bots.h b/Project Reboot 3.0/bots.h index 506a4df..e6528ed 100644 --- a/Project Reboot 3.0/bots.h +++ b/Project Reboot 3.0/bots.h @@ -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 { -} \ No newline at end of file +}