I just did that yeah. And thanks for your time btw.
Here’s what I rewrote the function definition to:
EMoveDirection AtwinStickPawn::CalcDirectionFromTickVector( const FVector MoveVectorThisTick )
{
if (MoveVectorThisTick.Y > 0)
{
return( EMoveDirection::DIR_Right);
}
}
And there’s the function call in the tick:
MoveDirection = CalcDirectionFromTickVector( MoveVectorThisTick );
Followed by this error:
Error 1 error C4715: ‘AtwinStickPawn::CalcDirectionFromTickVector’ : not all control paths return a value h:\users\dirtrobot\my documents\unreal projects winstick\source winstick winstickpawn.cpp 375 1 twinStick
I don’t even know what that means…?