AI help

Ok so I have been trying for a while now to get my characters to follow my player around the only thing is that I have 3 characters all of which when i press a button i can switch between them but they just stay in the same position as i have left them in when i had possessed them. So my question is can some one help me with making AI for my characters that arnt been possessed and follow the possessed character. Thanks

Sounds like you need to swap between AI controller and player controller depending on who is being possessed or not.

Basically, you need a bool “isPlayerPossessed” and if true, character’s controller is player controller, else, character’s controller is AI controller.

This is less than pseudo code and I’ve never done this before.

Hhhhhhhhhhhhhhhhmmmmmmmmmmmmmmmm now i think you have giving me an idea