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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to dictate which Game Mode to launch with

Hello there, we're currently nearing completion of a VR-enabled game that also supports traditional FPS. We have 2 Game Modes, one for playing in VR and another for FPS mode. My question is, how can we actually launch the game with one of those modes only, selectively? For example, is it possible somehow to dictate the launch parameters of the game outside of the game itself, such as by perhaps having one .exe file for launching with VR game mode, and another .exe file for launching with FPS game mode? Thank you for your time and help!

Product Version: UE 4.19
Tags:
more ▼

asked Dec 13 '18 at 02:45 AM in Packaging & Deployment

avatar image

Pyramas
1 2

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

2 answers: sort voted first

Hello Pyramas,

Yep, Creating a shortcut to your .exe and adding -vr to the end of the "Target" Field will launch your game in VR

more ▼

answered Dec 13 '18 at 11:00 PM

avatar image

Alex O ♦♦ STAFF
2.6k 4 8 10

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

Hello there, thanks for your response.

I think adding -vr to the end of the target field will only activate the HMD when the game launches though, correct? Our main issue is that we actually have 2 totally distinct Game Modes setup in our game, each with their own set of unique control blueprints and player pawns associated with them. Is there any way to specifically tell unreal to launch the game using one of those 2 Game Modes we have?

more ▼

answered Dec 17 '18 at 06:13 AM

avatar image

Pyramas
1 2

avatar image Alex O ♦♦ STAFF Dec 17 '18 at 02:44 PM

There is a "Get Command Line" blueprint node. So I can Imagine some logic where different modes are set up based on what is detected (String->Contains) in that output.

(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