How can set a local var from Input Component?

Hi everybody!
I have a delegate function with an int variable:

    void AMyCharacter::TempFunction (int temp) {};

And I need to set the “temp” from the input component, Well I tried this:

    void AMyCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
    {
         Super::SetupPlayerInputComponent(PlayerInputComponent);
         check(PlayerInputComponent);

         PlayerInputComponent->BindAction("Input", IE_Pressed, this, &AMyCharacter::TempFunction(0));
    }

But it didn’t work and I don’t know how to set a local variable from the input component!
Can anybody help, please?

you can do that by using templates more info here :https://orfeasel.com/inputs-with-parameters/