Blueprint stops at count two, doesn't go to count three

I’m trying to make a blueprint for a triple jumping custom character. He jumps three times like I want him too, but the third jump just goes back and repeats the first jump and I’m not sure why. What I mean by that is that while I’m playing the game with the blueprint window up, the first and second BRANCH nodes light up, but instead of the third jump lighting the third BRANCH node, it just repeats the first. And I can’t figure out why.

Here is the file. https://drive.google.com/file/d/190FAHcSI2M9Nvj8ALACYbv480t_Jwrw5/view?usp=sharing
Any insight would be appreciated.

I think you could use the DoN node here.
https://docs.unrealengine.com/en-US/Engine/Blueprints/UserGuide/FlowControl/index.html

Hello there,
I tried coping your setup but it wouldn’t work for me at all so I did some search and this is what I came up with, I can jump three times in this example.

278655-selectcharacter.png

278656-settingsforcharacter.png

  1. Similar script to yours, does a simple check and then increases adds one to count and jumps.
  2. You need to select your character and play with settings in pic 3
  3. First two are variables you have created the two below are defaults. You might want to play around with Jump Max Hold Time value. I found this low setting works just fine, the higher the value the longer the jump will be. Change to 1 for testing if you like.

I hope this will help out a bit and be a good base to create jumping system that you envisioned. If you have any questions, just fire away. :slight_smile:

I need different jump heights for each jump, that’s what the set Z velocity nodes are for. This gives me the same jump height for each jump.

That’s true it does. But you can fix using switch that @Hrishi_A mentioned earlier. I just tried it and it works, just follow the link and you should be able to set it up. Something like this, but you don’t need the print strings really.

Figured out a solution. Turns out I needed the = nodes to be >= nodes instead. Works fine now.