# Limited Ammo

**URL:** <https://forums.unrealengine.com/t/limited-ammo/320872>\
**Category:** Blueprint\
**Tags:** limit, unreal-engine, UE4, question, Blueprint\
**Created:** [June 6, 2015, 9:47am UTC](https://forums.unrealengine.com/t/limited-ammo/320872 "2015-06-06T09:47:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![4lpha](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@4lpha](https://forums.unrealengine.com/u/4lpha)\
**Post date:** [June 6, 2015, 9:47am UTC](https://forums.unrealengine.com/t/limited-ammo/320872/1 "2015-06-06T09:47:47Z")

</div>

Hello, I was wondering how I can limit the amount of ammo a player has for his/her weapon. I am using spawnactor for the bullets, thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [June 6, 2015, 12:57pm UTC](https://forums.unrealengine.com/t/limited-ammo/320872/2 "2015-06-06T12:57:07Z")

</div>

Hi

A simple way would be a INT var that holds the bullets. When INT = 0, stop the weapon to be able to be fired, for example with a Gate or Bool, depends on how you have you gun setup.

---

<div class="post-metadata">

**Author:** ![4lpha](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@4lpha](https://forums.unrealengine.com/u/4lpha)\
**Post date:** [June 6, 2015, 2:14pm UTC](https://forums.unrealengine.com/t/limited-ammo/320872/3 "2015-06-06T14:14:12Z")

</div>

Could you show me an example or a screenshot of what it would look like in the blueprints?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [June 8, 2015, 12:00pm UTC](https://forums.unrealengine.com/t/limited-ammo/320872/4 "2015-06-08T12:00:18Z")

</div>

Hi

Try this, a little crude., and not sure about reload for some reason. Got reload wrong, ahhh, annoying.

![45605-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/9/b39c3f145f83b8e49825dbe188a1cf337e0f7f6b.jpeg)

 ![45604-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/c/f6c549a600d4c28a00a7b3ca9137c52557ec9b3a.jpeg)

---

<div class="post-metadata">

**Author:** ![Estape](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/estape/32/1007455_2.png) [@Estape](https://forums.unrealengine.com/u/Estape)\
**Post date:** [January 5, 2017, 3:09pm UTC](https://forums.unrealengine.com/t/limited-ammo/320872/5 "2017-01-05T15:09:27Z")

</div>

Hi

Can you explain for me what is SpareAmmo, ClipSize and ClipAmmo? Thank you!
