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"

Drop in and out local muiltiplayer

I'm having problems getting drop in and out local split screen working. I want to have when the start button is pressed on a connected controller (which is player 0) a second player is added.

I have tried a few things and how I think it should works is I listening for input from a second controller and on an input event I create player. What I'm can't seem to work out is how to listen for input from player controller 1, which I have been creating on Begin Play in Game Mode and then enabling input from player controller 1, but the input does seem to work, I have been adding a debug print screen to test this.

I'm not sure if this is the right way to go about it so I would like to know if anyone know how to get this working?

Product Version: Not Selected
Tags:
more ▼

asked Sep 14 '14 at 12:49 AM in Blueprint Scripting

avatar image

BrendanJames
1 1 1

avatar image NamInUz Jul 19 '17 at 10:15 AM

I'm also interested in the answer

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

1 answer: sort voted first

I have experimented with the Create Player node in Game Mode classes, and it appears to create a local player and create a splitscreen viewport for them.

You can drop a player out via the Remove Player node, and it will also remove their splitscreen viewport.

Both nodes take a Player ID as input. I have not been able to get it to add any more players after there are 4 players on one device. I am assuming this is a limitation imposed because Unreal doesn't know how to split the screen more than 4 ways.

So if you want a player to drop themselves from the game, you can, on their PlayerController class, wire self -> Get Player ID -> Remove Player node, so it removes only the local Player object of the PlayerController that has that ID.

I'm not sure how to decide which ID to use to make sure you get the same game pad for the same local Player for the same PlayerController everytime though.

more ▼

answered Feb 10 '18 at 07:48 PM

avatar image

mightyenigma
3.8k 18 23 20

(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