Having an issue with AIController posessing player pawn

I have been trying to make it to where we have two characters, both of them with player controllers My aim was to make it to where the second character can be controlled by the second player, but that, once the player is done playing, they could press a button and the second character would be taken over by AI and will start following the first character.

At the moment, both characters have a player controller assigned to them once the scene starts. I have also at least made it to where, when the second player presses the XBOX One special right button, it’s will be unpossessed by its player controller. That all works, but, when I try to call on my AIController to possess the second character, it just won’t work. No errors, but it is just that the AIcontroller is not properly possessing the second character.

This is the code that has the player controller un-possess the second character and the AI Controller take possession:

284751-dummy-controller-1.png

This is the code that I have in the AIController that checks to see if the second character was possessed properly:

It would be really helpful if someone pointed out to me about how I was messing up the possession process, and possibly any other thing that I am doing wrong.

Really, thank you for your time.

Where you able to find a solution for this?

If you couldn’t find a solution, you can do something else

Give the second player an AI upon spawn so you don’t have to bother with posses/unposses.

Then, when the player 1 presses the button, tell the controller to dont receive inputs from player 2 anymore, then tell the controllerAI to start following the player 1.

And to give the player 2 possesion back, simply tell the AI to stop following and tell the controller to start receiving inputs again.