hello my friends
I have written a code to return the value of my aimRotation to do a MovmentOffsetYaw
I’m new to Unreal Coding
Here is the code
This is a really simple code but it just does not work
FRotator AimRotation = ShooterCharacter->GetBaseAimRotation();
FString AimRotationMessage = FString::Printf(TEXT("AimRotation: %f "), AimRotation.Yaw);
if (GEngine) {
GEngine->AddOnScreenDebugMessage(2, 0.f, FColor::White, AimRotationMessage);
}