# Character doesn't shoot while walking

**URL:** <https://forums.unrealengine.com/t/character-doesnt-shoot-while-walking/471987>\
**Category:** Character & Animation\
**Tags:** fire, run, walk, unreal-engine, question\
**Created:** [September 27, 2020, 6:31am UTC](https://forums.unrealengine.com/t/character-doesnt-shoot-while-walking/471987 "2020-09-27T06:31:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DRFasFalc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DRFasFalc](https://forums.unrealengine.com/u/DRFasFalc)\
**Post date:** [September 27, 2020, 6:31am UTC](https://forums.unrealengine.com/t/character-doesnt-shoot-while-walking/471987/1 "2020-09-27T06:31:00Z")

</div>

So I’m working on a third person shooter and I have added a gun, but when I walk it doesn’t let me shoot. I can shoot while crouching idle, crouching walking and idle, but for some reason when walking/running, It won’t let me fire. Does someone know what the problem might be?

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [September 27, 2020, 7:48am UTC](https://forums.unrealengine.com/t/character-doesnt-shoot-while-walking/471987/2 "2020-09-27T07:48:04Z")

</div>

It won’t let you fire? Is there anything in the code that could do that, eg. canShoot boolean? If not then it might be a collision problem. Try changing bullet spawn point or using some print string to find out what it collides with.

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [September 27, 2020, 5:56pm UTC](https://forums.unrealengine.com/t/character-doesnt-shoot-while-walking/471987/3 "2020-09-27T17:56:16Z")

</div>

Drop a print string right after your bullet is spawned. If you get the message then its a collision issue, otherwise there’s logic preventing the spawn.

---

<div class="post-metadata">

**Author:** ![Ciezzz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ciezzz](https://forums.unrealengine.com/u/Ciezzz)\
**Post date:** [February 12, 2023, 5:46am UTC](https://forums.unrealengine.com/t/character-doesnt-shoot-while-walking/471987/4 "2023-02-12T05:46:21Z")

</div>

This helped me. Thank you. How would I drop code to prevent a collision between the player and the BP\_pickup (gun). I’m learning so its messy and there is probably a better way.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/a/e1a02b362f257326b776c94db3c703a92e3cb8fe.png)
