How can I toggle between two Player Controllers
I'm building a top down RPG with the top down template that works fine as a point and click game. I would like for the players to be able to choose between a point and click and a wasd/gamepad control system (like playing diablo 3 on consoles) but I am lost as how to do it.
I don't want both to work at the same time, so I thought of making a second Controller BP and then creating an input to toggle the active controller.
I'm simply not sure as to where I should call the toggle (I guess its in game mode?) and what is the name of the node that sets the player controller.
If it's not possible in blueprint, can someone point me to the place in c++ where I can play with this?
Thank you all!
asked Oct 16 '18 at 03:30 PM in Blueprint Scripting
There is this but i really douth this will work as this is not what it was intended to do and there only one PlayerController for each player
You could try switching that controller by switching pawns, that might be a lot easier
answered Oct 16 '18 at 06:36 PM
The way I handle it is that I just have the input events from all types of controllers possible, on the same class, but use enum Switch or Branch to control whether they do anything. So if GamePad is selected as the control type, its Input events will continue forward and do their thing, but if Keyboard is selected then only its input events will continue. They're all going to fire, but only some will get past the initial branch or Select node.
answered Oct 26 '18 at 06:46 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here