How can I switch control between two characters using C++?

I’m having a heck of a time trying to switch control between two characters using C++. I’ve been working on this for maybe 10 hours and I just can’t get it to work. For the record I tried researching online, using chat gpt+, no luck so far. There is only one instance of each of these characters in the level, each with their own class. I would appreciate any advice on this. I’m using UE5.3. Thank you in advance!!!