# How to drain stamina bar in fps game and reduce players speed as soon as the stamina bar gets 0

**URL:** <https://forums.unrealengine.com/t/how-to-drain-stamina-bar-in-fps-game-and-reduce-players-speed-as-soon-as-the-stamina-bar-gets-0/344270>\
**Category:** Blueprint\
**Tags:** unreal-engine, fps, UE4, Blueprint, question\
**Created:** [January 16, 2016, 12:29pm UTC](https://forums.unrealengine.com/t/how-to-drain-stamina-bar-in-fps-game-and-reduce-players-speed-as-soon-as-the-stamina-bar-gets-0/344270 "2016-01-16T12:29:14Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [January 18, 2016, 10:04pm UTC](https://forums.unrealengine.com/t/how-to-drain-stamina-bar-in-fps-game-and-reduce-players-speed-as-soon-as-the-stamina-bar-gets-0/344270/3 "2016-01-18T22:04:29Z")

</div>

Hello Legas Games,

I suggest watching this tutorial to see how to do the UMG progress bar itself:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

As far as setting up the logic for the Stamina itself, you can deplete it like they do with Energy in that video tutorial. The only difference is that you’ll need to set the FirstPersonCharacter blueprint to check for when Stamina is \<= (less than or equal to) zero. When it is, you can change the variable called “Max Walk Speed” in the CharacterMovement component to any value you wish.

Hope this helps!

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-drain-stamina-bar-in-fps-game-and-reduce-players-speed-as-soon-as-the-stamina-bar-gets-0/344270)._
