Thanks very much,
I ref UE4 Third-person sample code to write my game, It work fine.
But I call MoveRight function then I change role(call UnPossess),
camera always changed(face to new role’s back),
How can I let camera only change once as first time, Please help me, thanks.
CameraBoom = PCIP.CreateDefaultSubobject(this, “CameraBoom”);
CameraBoom->AttachTo(RootComponent);
CameraBoom->bUseControllerViewRotation = true;
CameraBoom->bDoCollisionTest = false;
FollowCamera = PCIP.CreateDefaultSubobject(this, “FollowCamera”);
FollowCamera->AttachTo(CameraBoom, USpringArmComponent::SocketName);
FollowCamera->bUseControllerViewRotation = false;
CameraBoom->TargetArmLength = 520;
AddControllerPitchInput(20);