How do I get access to variables and or functions from the playercontroller class with code in the character class?
Is this possible?
Your Character class already holds a reference to it in a pointer variable called Controller
:
AMyControllerClass* MyController = Cast<AMyControllerClass>(Controller);
// make sure the cast succeeded before referencing the variable
if(MyController){
MyController->DoTheThings();
}