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:
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.