Local multiplayer

Hello, I’m trying to make a local multiplayer game (2 players sharing the keyboard with split screnn).
For the moment i’m trying to instanciate the 2 cars that the players will use. On the game mode i have done as you can see in the imagens.

Where i spawn the first car and set the type for p1 and possess it with the player controller index 0 and then spawn the second car but this time i create a new player controller and set the type for p2.

The function setType is used to set if it should use player1 controllers or player2 as you can see on the following code:

void ATheArenaPawn::setType(FString type) {
this->type = type;
}

void ATheArenaPawn::SetupPlayerInputComponent(class UInputComponent* InputComponent)
{
// set up gameplay key bindings
check(InputComponent);
if (type == “p1”){
InputComponent->BindAxis(“MoveForward”, this, &ATheArenaPawn::MoveForward);
InputComponent->BindAxis(“MoveRight”, this, &ATheArenaPawn::MoveRight);
//InputComponent->BindAxis(LookUpBinding);
//InputComponent->BindAxis(LookRightBinding);

	InputComponent->BindAction("Handbrake", IE_Pressed, this, &ATheArenaPawn::OnHandbrakePressed);
	InputComponent->BindAction("Handbrake", IE_Released, this, &ATheArenaPawn::OnHandbrakeReleased);
	InputComponent->BindAction("SwitchCamera", IE_Pressed, this, &ATheArenaPawn::OnToggleCamera);

	InputComponent->BindAction("ResetVR", IE_Pressed, this, &ATheArenaPawn::OnResetVR);
}
else{
	InputComponent->BindAxis("MoveForward_p2", this, &ATheArenaPawn::MoveForward);
	InputComponent->BindAxis("MoveRight_p2", this, &ATheArenaPawn::MoveRight);
	//InputComponent->BindAxis(LookUpBinding);
	//InputComponent->BindAxis(LookRightBinding);

	InputComponent->BindAction("Handbrake_p2", IE_Pressed, this, &ATheArenaPawn::OnHandbrakePressed);
	InputComponent->BindAction("Handbrake_p2", IE_Released, this, &ATheArenaPawn::OnHandbrakeReleased);
	InputComponent->BindAction("SwitchCamera_p2", IE_Pressed, this, &ATheArenaPawn::OnToggleCamera);

	InputComponent->BindAction("ResetVR_p2", IE_Pressed, this, &ATheArenaPawn::OnResetVR);
}

}

When the possess method is called the SetupPlayerInputComponent is also called and using the type set before it checks if the instance is for the player1 or player2.
I’m using the simple player controller that come with the project.
The problem is that only the first car instantiated responde the commands.

Thanks for the help