Enable Input Doesn't Work For Other Character
I have a problem enabling input for my main character. I have two characters, the player's main character (ThirdPersonCharacter) and another character (an NPC). Enable input works normally for the main character when overlap events are generated from other objects, but as soon as an overlap event is generated from the NPC, input is not enabled for the main character. The Enable Input node gets executed correctly.
The specific overlap event and 'Enable Input' node are located in the NPC's Blueprint, and at first I thought that I had to connect the "Target" input pin of said node with the character's Controller, but that didn't work either.
To sum up: There are two characters, 'Enable input' in the BP of one of them doesn't enable input on the other one. Note that I did connect the 'Target' input pin to the corresponding player's controller.
asked Nov 11 '16 at 02:10 PM in Blueprint Scripting
Thanks for the answer.
Sorry, but I don't think this works. I know it has been answered multiple times, but I have a feeling that I don't understand something in the process. I don't want to control any other actor; I just want to enable input on my character (which is already possessed with a controller), when an overlap event is generated with another actor- and I want to do this from that actor's (NPC) blueprint.
Here is the blueprint that is supposed to work (NPC's BP- doesn't work):
And here is what I wanted to do and doesn't work either:
Any further help would be appreciated!
answered Nov 12 '16 at 03:22 PM
If you want another actor to receive inputs, it needs to be possessed by a PlayerController. If you want to control one actor at a time, then you can use Get Player Controller(0) - Possess (The actor). But if you want to control two actors at the same time, you have to make a 2nd Player Controller, and possess it with that.
answered Nov 12 '16 at 01:47 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here