Shooter game: Bots not spawning on custom map
Hey, so I've been trying to figure this out for couple of hours...
I am using the Shooter Game sample provided with UE4 and trying to add custom map. I created the map, placed several spawn points for teams 0 and 1. I've added custom main menu item where I just want to start a singleplayer game with bots. I am able to select my map from the list of maps, but when I chose my custom map, game starts but bots do not spawn. However, if I chose some of the provided maps everything works correctly; I have not modified game mode, I am using default ShooterGame_TeamDeathmatch mode for my custom map. I can spawn bots from console, but they're just not spawned when I start the map from the menu.
asked Aug 27 '18 at 07:17 PM in C++ Programming
It turns out that I have hardcoded online mode to be offline GameInstance->SetOnlineMode(EOnlineMode::Offline); in ShooterMainMenu in OnUIHostMyCustomMode event, and it offline mode obviously does not spawn bots. However, it is still not clear to me why these settings worked on a default map provided with the ShooterGame project.
answered Aug 28 '18 at 02:57 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here