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 do I control 2 pawns with 1 controller?

I'm trying to control 2 pawns with 1 controller, one for each analogue stick and I can't figure out how to possess two pawns simultaneously.

At the moment I have this in PawnTWO's event graph:

alt text

It doesn't work because it just changes the Game Mode to control the second pawn instead of both pawns. I'm practically begging for help now, I'm going crazy trying to work this out.

Product Version: Not Selected
Tags:
more ▼

asked Jun 23 '14 at 10:11 PM in Blueprint Scripting

avatar image

DJRD4465
13 2 4 8

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

2 answers: sort voted first

Hey all,

I've posted an answer for this question here:

https://answers.unrealengine.com/questions/87715/control-2-pawns-with-1-controller.html#answer-87948

If you have any other questions, please refer to and respond on that thread. Thanks!

more ▼

answered Aug 23 '14 at 08:01 PM

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

PlayerController by default only support once possesion, there 3 solutions (on top of my head):

  1. Add support of 2nd pawn to your PlayerController class.... just make variable for 2nd pawn :p and then some extra functions associated with it. I would require extra study on how PlayerController work to plug 2nd pawn in to it's systems, or else you dont really use playercontroller features much . Keep in mind that blueprint is valid class same as C++ class is and it works under same rules, this mean you can freally extend PlayerController features as you like :).

  2. Make 2 actors... in one :p make each character a separate component of single actor attached to each other, this is good depending on your design. It's good solution is those 2 pawns follow eachother realivily, i expect you might hit some problems if they are more independent

  3. Don't care to much about it and think out of the box, possession is there just so you can easily reference to character that specific player controls. You don't need controller to posses pawn to control it, all you need to have is reference to that pawn... that actually basis of solution 1, but you can also keep refrence to 2nd pawn in 1st pawn.

In the end it depends on your game, what you actully doing

more ▼

answered Jun 23 '14 at 11:34 PM

avatar image

Shadowriver
37.3k 936 172 1117

(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