# Set Floats for stamina are not working i need help

**URL:** <https://forums.unrealengine.com/t/set-floats-for-stamina-are-not-working-i-need-help/449105>\
**Category:** Blueprint\
**Tags:** stamina, unreal-engine, Blueprint, question, set-timer\
**Created:** [May 17, 2019, 9:38am UTC](https://forums.unrealengine.com/t/set-floats-for-stamina-are-not-working-i-need-help/449105 "2019-05-17T09:38:25Z")\
**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 17, 2019, 9:38am UTC](https://forums.unrealengine.com/t/set-floats-for-stamina-are-not-working-i-need-help/449105/1 "2019-05-17T09:38:25Z")

</div>

Ive been trying to make it so when you crouch stamina regenerates faster, ive been trying for a while now, any advice?  
277056-  
][1]

---

<div class="post-metadata">

**Author:** ![Bazzy2000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bazzy2000](https://forums.unrealengine.com/u/Bazzy2000)\
**Post date:** [May 17, 2019, 9:58am UTC](https://forums.unrealengine.com/t/set-floats-for-stamina-are-not-working-i-need-help/449105/2 "2019-05-17T09:58:03Z")

</div>

Where is your function that regenerates the stamina? One option would be multiplying the StaminIncrease variable in stamin regenerate function when the player is crouching.

---

<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 18, 2019, 4:08am UTC](https://forums.unrealengine.com/t/set-floats-for-stamina-are-not-working-i-need-help/449105/3 "2019-05-18T04:08:58Z")

</div>

![277179-screenshot-7.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/8/c08725ba81241d87ac93611e699ad6071e4f2b68.png)

---

<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 18, 2019, 4:09am UTC](https://forums.unrealengine.com/t/set-floats-for-stamina-are-not-working-i-need-help/449105/4 "2019-05-18T04:09:37Z")

</div>

Here are my stamina regeneration functions  
hope this helps

---

<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 18, 2019, 4:23am UTC](https://forums.unrealengine.com/t/set-floats-for-stamina-are-not-working-i-need-help/449105/5 "2019-05-18T04:23:06Z")

</div>

This is what I tried doing, it works but the only problem is that whem I uncrouch is dosent set it back to normal, any advice

---

<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 18, 2019, 12:49pm UTC](https://forums.unrealengine.com/t/set-floats-for-stamina-are-not-working-i-need-help/449105/6 "2019-05-18T12:49:44Z")

</div>

yellow box is stamina regen
