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"

How to set game mode

Hi

As an experienced C++ programmer but newbie to Unreal 4 - I have just completed the How To UMG tutorial but want to work out how I would set the game mode back to normal having set it to my menu based controller. It seems like there should be a 'Set Game Mode' blueprint action - all I can find is how to get the existing game mode as described in the tutorial.

Many thanks in advance and sorry for what will turn out to be such a lame question !

Product Version: UE 4.10
Tags:
more ▼

asked Jan 21 '16 at 02:25 PM in C++ Programming

avatar image

jabbergabber
3 1 2 2

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

1 answer: sort voted first

You can't set a game mode in a blueprint because the game mode would already be active when any blueprint code is run - and you can't change the game mode of an active map without reloading the map.

Game modes are level specific. If you've got your level open, go to the world settings tab (you may need to enable this in the window menu) and change it there. Or you can change the project default setting in the project options - if this is how you did in the first place. There's also an option on the dropdowns somewhere (the big buttons like compile, etc.) I forget exactly which one has it.

more ▼

answered Jan 21 '16 at 02:42 PM

avatar image

TTaM
1.7k 78 23 79

avatar image jabbergabber Jan 21 '16 at 02:45 PM

Thanks for replying so quickly - I think I am getting my head around Game Modes now. So the question is - from the tutorial example - how do I return to being able to move around the level and ditch the HowTo_UMGGameMode settings having used the menu to start a new game ?

avatar image TTaM Jan 21 '16 at 02:47 PM

So you've got a map with your umg game mode and you want to use it to change to a level where you can fly around again? Like a load map button?

Or you want to completely get rid of the game mode and not use it at all?

avatar image jabbergabber Jan 21 '16 at 02:58 PM

Not sure if my screen grab reply worked ! - I want to know what I would do 'following the tutorial' when I press the new game button.

avatar image jabbergabber Jan 21 '16 at 03:01 PM

alt text

newbie.png (134.1 kB)
avatar image TTaM Jan 21 '16 at 03:03 PM

Create a new map using the standard game mode (see how to change it in my first reply.) Use the 'open level' node to change to that level.

avatar image jabbergabber Jan 21 '16 at 03:04 PM

worked that time ! lol

Thanks for your patience - Its tricky asking a question when you don't know the question ! - The tutorial gets you to produce the blueprint above. What I want to figure out is what do I do once I click the play game button - do I create a new world class ? and select it in the Change Menu Widget ?

avatar image TTaM Jan 21 '16 at 03:32 PM

A new world class?

Create a new map (in the menu at the top-left,) save it and then use its name in the "open level" node.

avatar image jabbergabber Jan 21 '16 at 06:00 PM

That works great - thanks for helping out

(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