Controller states

Hello guys !

I’ve finally decided to ask my problem here, after many pages of google and many UE4 post on the forum.

I have made a third person camera (I know, again the cameras !) like in gears of war, strafing left and right, everything working perfect.

I asking me how can i handle differents state, explain : When the pawn is not moving, the camera orbit around like the “Third person template”, when it’s moving, the player strafe left and right. (like a mass effect camera, or the division)

Thanks in advance for your help.
Sorry for maybe bad english, i’m a frenchy :s

Hi again,

I’have made a code that working partially, when i move the character strafe left and right like i want but is not backwarding, is facing the camera. Here is what i write : (I can give you the full .cpp if you want).

void AMyProjectCharacter::Tick(float DeltaTime)
{
	if (bIsInMOVE)
	{
		bUseControllerRotationPitch = false;
		bUseControllerRotationYaw = true;
		bUseControllerRotationRoll = true;



	}
	else
	{
		bUseControllerRotationPitch = false;
		bUseControllerRotationYaw = false;
		bUseControllerRotationRoll = false;

	
	}
}