Getting input from specific Gamepad?
I'm setting up a character selection screen for a local multiplayer game. Try to think of a Gauntlet style game, where before gameplay, each player can flip through characters on the HUD and select one, once everyone has picked a character the game begins and you spawn as your selected character.
I have the UI setup to show the models and I can flip between them using mouse clicks on a specific button, but how can I let each individual player pick their hero? I don't see a way to get a specific gamepads input. i.e. Gamepad 2 left and right Dpad. Is this something that could come in an update? It would be really helpful I imagine for local multiplayer games. I read about a c++ method that overrides a viewport functions, but I'm at a loss for doing this in blueprint.
Otherwise I'll have to make a ton of extra HUD nodes, and do character selection one at a time, with the illusion that only one person can pick their character, which just isn't going to cut it for what I'm working on. Perhaps I need to make a playerController BP for each player?
asked Oct 28 '14 at 06:18 AM in Blueprint Scripting
Well I just found a 'Was Input Key Just Pressed' which returns a boolean, and can take in a player controller with an index. So using some clever branching, and a ton of nodes, I can check to see if a certain player just pressed the button, whenever that button is pressed.
I only have 1 gamepad with me currently so I can't check player 2, but I think it should work for now.
answered Oct 28 '14 at 07:25 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here