Here is my functions and the playerinputcomponent
void AHero::StartCrouch()
{
Crouch();
}
void AHero::StopCrouch()
{
UnCrouch();
}
// Sets up "crouch' binding
PlayerInputComponent->BindAction("Crouch", IE_Pressed, this, &AHero::StartCrouch);
PlayerInputComponent->BindAction("Crouch", IE_Released, this, &AHero::StopCrouch);
Below is my .h file declarations
// Handles the "crouch" binding
UFUNCTION()
void StartCrouch();
UFUNCTION()
void StopCrouch();
I don’t know why it isn’t working to be honest. Any solutions?