Enable input in another character

I’m trying to enable input from player controller in a character, but this only seems to work with an Actor and not with a Character blueprint. Am I doing something wrong?

When this character use something from the world, my approach usually is disable input from character and then enable input from the actor being used (for example, harvesting a plant). This usually works perfectly, the problem comes when I try to do this on a character (when a player wants to talk to this character, I try to use some keys to select an answer and things like that).

Disable input works correctly, but then Enable input doesn’t work. I’ve checked the Input is not Blocked (from Default settings). Also I’ve tried to Set AIController to the same as player (just in case) and nothing.

I’m thinking that maybe, a character already has a controller and when I try to override that, doesn’t work…

A possible workaround that I have is to send events from my character blueprint to the target character (to select an answer), but as you can imagine, this is much less cleaner than doing it correctly.

May be you are missing the GameMode (you need to assign that character to it).

Here is step by step in how to enable inputs within blueprint (character blueprint):

https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/SetUpInput/Blueprints/index.html

-m

I already have a character working correctly.

Sorry for not clarify before, I will explain better: When this character use something from the world, my approach usually is disable input from character and then enable input from the actor being used (for example, harvesting a plant). This usually works perfectly, the problem comes when I try to do this on a character (when a player wants to talk to this character, I try to use some keys to select an answer and things like that).

Disable input works correctly, but then Enable input doesn’t work. I’ve checked the Input is not Blocked (from Default settings). Also I’ve tried to Set AIController to the same as player (just in case) and nothing.

I’m thinking that maybe, a character already has a controller and when I try to override that, doesn’t work…

A possible workaround that I have is to send events from my character blueprint to the target character (to select an answer), but as you can imagine, this is much less cleaner than doing it correctly.

Anyone have any idea? With actors works correctly, but with characters don’t… I will use as a workaround a childactor inside the character, but this is something very dirty