Files
Project-Reboot-3.0/Project Reboot 3.0/FortPlayerControllerAthena.cpp
Milxnor ae259f97eb aa
2023-03-05 22:30:29 -05:00

13 lines
463 B
C++

#include "FortPlayerControllerAthena.h"
void AFortPlayerControllerAthena::GetPlayerViewPointHook(AFortPlayerControllerAthena* PlayerController, FVector& Location, FRotator& Rotation)
{
if (auto MyFortPawn = PlayerController->GetMyFortPawn())
{
Location = MyFortPawn->GetActorLocation();
Rotation = PlayerController->GetControlRotation();
return;
}
return AFortPlayerControllerAthena::GetPlayerViewPointOriginal(PlayerController, Location, Rotation);
}