If you are casting in your Character class, your first line is wrong. You are trying to cast your character class, not your controller class there. Just put Controller instead of this in the argument for cast in the first line. So do this:
Thanks for your answer. I am still learning and don’t know much about how to correctly use pointers and static functions. The code compiles fine, it just has an issue with:
APC->HandleDeath();
Commenting out this line will fix the compile error.
I have also tried AInGamePlayerController::HandleDeath(); with the static keyword and this also throws an error.
I am able to call variables from the controller and print that to the log, just tried with an int32 variable. Its just the function that can’t be called for some reason.
Ok. Without changing anything except what I mentioned in the comment to the other answer; it is now working. I have no idea how, it just is. I restarted VS and installed VAX. Honestly; I have no idea why its now working.