In ShooterCharacter.cpp i added the below code but it wont compile because of an error.
FRotator AShooterCharacter::GetCharacterViewRotation(FName ESocket) const
{
FVector ViewLoc;
FRotator ViewRot;
if ((ESocket == NULL ))
{
return GetViewRotation();
}
Mesh->GetSocketWorldLocationAndRotation(ESocket, ViewLoc, ViewRot);
return ViewRot;
}
Error: ‘USceneComponent::GetSocketWorldLocationAndRotation’ : cannot convert parameter 3 from ‘FRotator’ to ‘FRotator *’