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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Check which player controller's input is opening the door?

Hi, I have a door, (well actually I don't, but this is a much simpler example lol), and on overlap from a player I will allow the player to press E to open or close the (imaginary) door. I can enable input when the player overlaps the door, and then I know which player controller is involved. However, if say two characters (its multiplayer) are both at the door at once fighting for control, how can I find out which controller pressed E? Ok so my door example is falling apart...

It's actually for mounting an animal. If two players are racing to get in mounting range, how can I find out who pressed E first and therefore know which player to mount it?


Product Version: UE 4.10
more ▼

asked Mar 02 '16 at 01:02 AM in Blueprint Scripting

avatar image

1 1 1

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

1 answer: sort voted first

alt text

I think what should happen is that each client handles the input from the controllers separately, so each client is only giving or removing access for that local player controller. When any of the clients presses the mount button, triggering the input event on the mount, that mount should call a function on the server and include the instigator's controller/player index as a parameter. This allows the server to manage who gets to use the object, while letting the client inform the server about which controller it was.

That's what I envision anyway. Someone might have a better idea?

more ▼

answered Mar 02 '16 at 01:14 AM

avatar image

186 4 7 13

(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