No need to search where the function is defined

Since ShooterCharacter is a Pawn and is a Character, it does have the Jump and AddControllerXxxInput functions. So we can just take them from AShooterCharacter, i.e. these work just fine:

	PlayerInputComponent->BindAxis(TEXT("LookUp"), this, &AShooterCharacter::AddControllerPitchInput);
	PlayerInputComponent->BindAxis(TEXT("LookRight"), this, &AShooterCharacter::AddControllerYawInput);

	PlayerInputComponent->BindAction(TEXT("Jump"), EInputEvent::IE_Pressed, this, &AShooterCharacter::Jump);
1 Like

I finished the course not too long ago, I thought of that and so I just did this instead. Good thing to let others know just to simplify things!

What if one wanted to control the sensitivity of the look? Is there a predefined variable for it or in that case i will make my own function and multiply the axis value by my desired mouse sensitivity speed variable?

Privacy & Terms