I’m trying to use the GetHitResultAtScreenPosition for a project in a Pawn class, but adding the “GameFramework/PlayerController.h” doesn’t work in the cpp file. I’ve also tried remaking the function but I’ve gotten dll errors.
Is there any way that I can call the function in a Pawn class?
I would like to add (after an hour of bumbling around) that the -> should be :: to access the class functions. The second one (being a pointer return) should be a ->.