How to Make One Controller Possess Two Players?
Now here is the situation. In game mode blueprint, with Event Begin Play I create a second player. The ID for new controller is "-1" which is what the random number for "Create Player" node. (Making the ID 0 breaks everything)
What I need to do is, I need to assign my default controller to this newly created player aswell. I am creating a local multiplayer game where two players use one keyboard.
At the moment I fix my problem by casting to player characters in the game during the game time to tell them what to do, for example input A makes player one move while input B makes player two move because I cast to them during that time.
I believe this is a dirty way to fix as the game automaticaly creates 2 controllers even only one of them, the first one is being used. And I got 2 player starts. Here is the situation:
Controller 0 is created. His mood : =D I am doing everything yay! Controller 1 is created because "Create Player" node in gamemode blueprint says so. His mood: =| U wot mejt.
I tried to fix this by telling Create Player node in gamemode blueprint to assign the controller 0 to it aswell, but this makes things goes mad. It seems Player 0 loses the controller by this way. At the moment I got a second controller that I want to get rid of, as it does nothing at all.
As I checked the answerhub, spawning controller actor doesn't work. I am not on my computer right now so I can't check it. :(
Long story short, how can I make one controller posses two players at the same time?
Thank you for your time and reading!
asked Apr 03 '15 at 03:40 PM in Blueprint Scripting
Follow this question
Once you sign in you will be able to subscribe for any updates here