Download

JumpMaxHoldTime

Hey does anyone know how I can get JumpMaxHoldTime working because I’ve set it from code and in jump pressed I’ve called DoJump() and in jump released I’ve called StopJumping(), is there anything else I need to do? Thanks

I think the problem is that you are calling DoJump on the CharacterMovementComponent, instead of Jump on the Character.
Try binding the events like this (in the Character):

    PlayerInputComponent->BindAction("Jump", IE_Pressed, this, &ACharacter::Jump);
    PlayerInputComponent->BindAction("Jump", IE_Released, this, &ACharacter::StopJumping);
1 Like

Thank you! I got it working now! :slight_smile: