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 do i have two different gamemodes in one game?

In case you didn't understand the title picture this scenario: You have one player using a standard mouse and keyboard setup with (thinking about just using the standard 3PS template for this character/player). Then you have another player using a VR headset (I have the HTC VIVE Available for this project). I want the two players to be able to meet each other in game, so that one player uses the VR headset and the other player uses the keyboard+mouse but they can still meet each other and play on the same map. Kind of like the game Panoptic if you've heard of it. The game will also work online, as in the player with the keyboard+mouse will host (just a listen server atm) and the VR player will connect to the level hosted there (open myIpAdress).

If I'm to unclear in this post, please let me know. Fairly new to this so I dont know what information you require to be able to help me.

In advance, thank you.

Product Version: UE 4.13
more ▼

asked Jan 05 '17 at 08:35 AM in Blueprint Scripting

avatar image

1 2

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

2 answers: sort voted first

The way the player controls its character shouldn't be set in the GameMode, but in the PlayerController. I'm not sure how to make different types of them, but it's more doable then making 2 GameMode. You can always create a new PlayerController of a desired type during game, but I'm not sure about destorying one. But at least it's a start!

more ▼

answered Jan 05 '17 at 10:53 AM

avatar image

531 25 25 43

avatar image Fryderider Jan 05 '17 at 12:11 PM

I guess you could simply make two different "setups" inside the PlayerController. Then use IsHeadMounterDisplayEnabled to check which one of the setups that should be used.

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

I would lean to implementing the different schemes in the pawns. Have two different pawns much like the way spectators work. Keep anything generic in a base Pawn class, components or in the Player Controller.

more ▼

answered Jan 07 '17 at 05:10 AM

avatar image

2.6k 98 16 97

(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