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"

Local multiplayer weapon pickup actor only responds to player one

Hi! I'm creating a splitscreen shooter and have an actor that serves as a weapon pickup. When near it, a player can press a button to swap their current weapon for a new one. Problem is, it only does it for player 1 (controller ID 0). I've narrowed my problem down to it just not responding to other players through some testing, but I thought the setup I had made would rectify this, so now I'm a little lost on how to fix it. When enabling "Auto Recieve Input" to another player, that will work for player 1 and just the other player selected, so it doesn't help when I'm playing with 3 or more players.

alt text

Product Version: UE 4.12
clipboard01.jpg (520.2 kB)
more ▼

asked Jul 24 '16 at 07:43 PM in Blueprint Scripting

avatar image

19 6 6 13

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

1 answer: sort voted first

It might be better to use an interface for this. Once the player steps inside the pickup trigger, set a reference to the pickup on the player pawn and one for the player on the pickup. Then when you press a button, an interface message will be sent from that player to the weapon and he'll be able to pick it up.

Either that or you can enable input depending on the player's controller ID.

more ▼

answered Jul 24 '16 at 08:02 PM

avatar image

162 11 13 24

avatar image Ghodan Jul 25 '16 at 07:14 PM

Thank you! This led me to fixing it, I took the interface example and went from there.

(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