Ok, I did it in blueprint so you can copy easier. Add your object into the impulse thing, and replace “Gamepad Face Button” with your jump input event. I didn’t test it, but if it doesn’t work let me know- it’s relatively simple.
JumpTimeBeforeStartCharging is how long you have to hold until the jump starts charging. JumpMaxChargeTime is how long you can charge up. JumpBaseVector is the amount you always jump. JumpChargeVector is the additional amount you gain per second of charge. JumpPressTimer starts at -JumpMaxChargeTime and goes up to +JumpMaxChargeTime when JumpPressed? is set.
Variables:
Tick event:
Jump input event: