# How can i make stamina increase fast while crouching?

**URL:** <https://forums.unrealengine.com/t/how-can-i-make-stamina-increase-fast-while-crouching/449215>\
**Category:** Blueprint\
**Tags:** stamina, unreal-engine, tick-rate, UE4, Blueprint, question\
**Created:** [May 19, 2019, 8:13am UTC](https://forums.unrealengine.com/t/how-can-i-make-stamina-increase-fast-while-crouching/449215 "2019-05-19T08:13:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BluAstronaut](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BluAstronaut](https://forums.unrealengine.com/u/BluAstronaut)\
**Post date:** [May 19, 2019, 8:13am UTC](https://forums.unrealengine.com/t/how-can-i-make-stamina-increase-fast-while-crouching/449215/1 "2019-05-19T08:13:06Z")

</div>

Ive been trying to do this for a while now, it works to some degree since when I crouch the stamina increase rate increases but when I uncrouch it remains the same speed of increase rate, any advice?

 ![277308-screenshot-18.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/8/76819da9c0c8053d621a197647c191533ef5def0.png)

Here is the stamina regen part I copied and pasted

---

<div class="post-metadata">

**Author:** ![NorlinGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/norlingames/32/495614_2.png) [@NorlinGames](https://forums.unrealengine.com/u/NorlinGames)\
**Post date:** [May 19, 2019, 3:18pm UTC](https://forums.unrealengine.com/t/how-can-i-make-stamina-increase-fast-while-crouching/449215/2 "2019-05-19T15:18:10Z")

</div>

At first, as far as I understand, this blueprint will not regenerate the stamina, instead it will set it instantly to the new value after some delays.

If you want to smoothly increase a value, there are multiple ways:

1. you can use `Lerp` node with (“duration” / “time passed”) as the Alpha value. Then you will be able to control the increase speed by changing the duration.
2. Other way is to use `FInterpTo` node. In this case, you can directly set the desired increase speed.
3. Use the `Timeline` node. This way will allow you not just to change the increase speed (over the timeline play rate), also it will allow to use different curves for increasing, if you want to make it non-linear.

---

<div class="post-metadata">

**Author:** ![BluAstronaut](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BluAstronaut](https://forums.unrealengine.com/u/BluAstronaut)\
**Post date:** [May 24, 2019, 3:09am UTC](https://forums.unrealengine.com/t/how-can-i-make-stamina-increase-fast-while-crouching/449215/3 "2019-05-24T03:09:40Z")

</div>

Thanks, do i connect to the crouch or event tick?

---

<div class="post-metadata">

**Author:** ![BluAstronaut](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BluAstronaut](https://forums.unrealengine.com/u/BluAstronaut)\
**Post date:** [May 24, 2019, 3:33am UTC](https://forums.unrealengine.com/t/how-can-i-make-stamina-increase-fast-while-crouching/449215/4 "2019-05-24T03:33:01Z")

</div>

Could you perhaps go into further detail about the flnterpto one?

---

<div class="post-metadata">

**Author:** ![NorlinGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/norlingames/32/495614_2.png) [@NorlinGames](https://forums.unrealengine.com/u/NorlinGames)\
**Post date:** [May 24, 2019, 8:37am UTC](https://forums.unrealengine.com/t/how-can-i-make-stamina-increase-fast-while-crouching/449215/5 "2019-05-24T08:37:14Z")

</div>

Depends on which way you want to. `Lerp` and `FInterpTo` should be used on Tick, since you need to update the value continuously over time.  
Timeline can be used from a single-call node, but it will have a different behavior: it’s more like animation, you can start it and it will increase the value at desired speed and time. E.g. “fire and forget”. It may be okin case if player is picking up some “restore stamina” bonus or something like that, but not for the constant increase rate.

---

<div class="post-metadata">

**Author:** ![BluAstronaut](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BluAstronaut](https://forums.unrealengine.com/u/BluAstronaut)\
**Post date:** [May 24, 2019, 11:53am UTC](https://forums.unrealengine.com/t/how-can-i-make-stamina-increase-fast-while-crouching/449215/6 "2019-05-24T11:53:37Z")

</div>

thank you, ill try my best
