x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: UE 4.20
Tags:
more ▼

asked Aug 27 '18 at 07:17 PM in C++ Programming

avatar image

rastko96
1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

more ▼

answered Aug 28 '18 at 02:57 PM

avatar image

rastko96
1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question