How do I make Pawnsensing moveable in C++?

I’m currently working on a project that involves AI. I had the mesh set up, but when I added in a pawn-sensing component, it was stuck in the head position of the capsule, I couldn’t move it anywhere. I tried looking at the code for it but couldn’t find anything about making it moveable. I’ve never used C++, only blueprints. So if anyone could lend a hand that’d be great.
I did create a derived component of it so if there’s anything I could add there, let me know.