Enhanced Input stops working when AIController is used

The InputMappingContext is definitely being added to the character. That’s what I thought was the place you are supposed to do it.

Here in the doc, it says that is the correct place to do it.

Here’s my source code, with the input actually working (as I have rolled back the AI possess):

The doc says you can do it dynamically, so I suppose there’s nothing to stop from doing it later after the AIController has possessed the Player Character.

The main issue I faced with this was the actual binding of the action, which is done in the Player Character’s SetupPlayerInputComponent method. I tried a few ways to call this method after the AI Controller had done it’s possess, but could not get a valid UInputComponent reference.