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"

Having issues setting up local multiplayer

Hey everybody,

I'm making a PvP game where each player controls two sprites. I managed to get the one controller for two sprites hooked up but I can't seem to get Unreal to recognize Player 2. I call the creation of two players in the Game Mode as well as Player 2's Controller, which is set up just like Player 1's and contains all of the spawn information etc.

I think maybe the use of a second controller within the first controller might be throwing things off but I am unsure. Also If that is the case then I don't know how to make it work anymore.

Please let me know what you all think.

Game Mode: alt text

Default Controller for Player 1: alt text

Controller for Player 2: alt text

Product Version: UE 4.12
screenshot (7).png (116.4 kB)
screenshot (5).png (135.0 kB)
screenshot (9).png (143.8 kB)
more ▼

asked Aug 11 '16 at 04:33 AM in Blueprint Scripting

avatar image

1 1

avatar image TheGreatFort Aug 12 '16 at 06:37 AM

Just in case anyone was following I did some work today and I am now able to spawn all 4 needed characters but I can still only control but I am able to control one with each controller so that is cool!

This is how I did that in the game mode: alt text However I am still having trouble getting the game pads to control more than one character at a time. I can get player 1 working when I run it through this blueprint in the character controller: alt text But when I do that it overrides player 2 completely. It seems like anytime I assign a new controller it just takes the spot of the next player, but I need that spot for player 2 and I can't seem to reassign it to another player.

Anyone out there with a good idea?

Or is this just impossible in Unreal? it doesn't feel like that should be the case.

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

2 answers: sort voted first

I have heard that the Player Controllers and Pawns have a 1 to 1 input mapping, they only Possess one Pawn at a time. If you want to controll more than one pawn, you will have to do it outside of Possession, directly adding movement to a non-possessed Pawn for the second one (might as well do the first one the same way, I suppose.

more ▼

answered Feb 10 '18 at 08:27 PM

avatar image

3.8k 18 23 20

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

answered Feb 10 '18 at 08:35 PM

avatar image

384 1 5 8

(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