# Shooter game: Bots not spawning on custom map

**URL:** <https://forums.unrealengine.com/t/shooter-game-bots-not-spawning-on-custom-map/432584>\
**Category:** AI\
**Tags:** maps, shooter-game, Map, unreal-engine, bots, question\
**Created:** [August 27, 2018, 7:17pm UTC](https://forums.unrealengine.com/t/shooter-game-bots-not-spawning-on-custom-map/432584 "2018-08-27T19:17:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_8a281c88](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8a281c88](https://forums.unrealengine.com/u/anonymous_user_8a281c88)\
**Post date:** [August 27, 2018, 7:17pm UTC](https://forums.unrealengine.com/t/shooter-game-bots-not-spawning-on-custom-map/432584/1 "2018-08-27T19:17:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8a281c88](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8a281c88](https://forums.unrealengine.com/u/anonymous_user_8a281c88)\
**Post date:** [August 28, 2018, 2:57pm UTC](https://forums.unrealengine.com/t/shooter-game-bots-not-spawning-on-custom-map/432584/2 "2018-08-28T14:57:07Z")

</div>

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.
