Audio Ears on the Character, not the Camera?

In 4.24.3 the declarations have to be without the const, so

in the .h:

virtual void GetAudioListenerPosition(FVector& OutLocation, FVector& OutFrontDir, FVector& OutRightDir);

and in the cpp:

void APlaneshiftPlayerControllerBase::GetAudioListenerPosition(FVector& OutLocation, FVector& OutFrontDir, FVector& OutRightDir)

The line:

Super::GetAudioListenerPosition(OutLocation, OutFrontDir, OutRightDir);

to me its unecessary as it will just execute the same code in the super class APlayerController. I removed it and it works anyway.

1 Like