Im fairly new to UE and wanted to tinker around in the third person c++ project, ive set a first/third person toggle and am now trying to shoot out a ray from the characters head and make it pivot with the camera. Once i run this line here in the character.cpp file, UE crashes. Im wondering if its due to it being the third person project and maybe doesnt have this setup? any insight would be great in helping me learn and figure this out
GetOwner()->GetActorEyesViewPoint(
OUT PlayerViewPointLocation,
OUT PlayerViewPointRotation
);