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?
asked Mar 02 '16 at 01:02 AM in Blueprint Scripting
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?
Follow this question
Once you sign in you will be able to subscribe for any updates here