# Firing a bullet that moves player

**URL:** <https://forums.unrealengine.com/t/firing-a-bullet-that-moves-player/453920>\
**Category:** Blueprint\
**Tags:** projectile-hit, unreal-engine, UE4, Blueprint, question\
**Created:** [August 15, 2019, 5:29pm UTC](https://forums.unrealengine.com/t/firing-a-bullet-that-moves-player/453920 "2019-08-15T17:29:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![scrotey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@scrotey](https://forums.unrealengine.com/u/scrotey)\
**Post date:** [August 15, 2019, 5:29pm UTC](https://forums.unrealengine.com/t/firing-a-bullet-that-moves-player/453920/1 "2019-08-15T17:29:57Z")

</div>

I’m looking for advise or general direction that I can use to build my knowledge up. i’m using the default first person mode which has a prebuilt gun & projectile.

I’m trying to modify it, so that the projectile will hit another player character (simple 2 player) and will move them proportionally in the direction of the projectile (with projectile disappearing). Seems relatively simple, but I’m tearing my hair out here!

any advise greatly appreciated!

---

<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:** [August 15, 2019, 7:48pm UTC](https://forums.unrealengine.com/t/firing-a-bullet-that-moves-player/453920/2 "2019-08-15T19:48:18Z")

</div>

Hello scrotey,

I gave this a quick try and I got it somewhat working. You could try this and see if that’s what you had in mind. Maybe someone else has a better idea how to approach this.

Open blueprint for the character you want pushed and select your capsule collision component, scroll down to Physics. Tick box enable physics, expand Constraints and tick lock rotation (XYZ).  
Open your projectile blueprint and try using this code, it’s pretty much a default thing in projectiles but I’m posting screenshots below for clarity.

Let me know if this was helpful.

![285125-capsulecomponent.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/0/730d0899bc610815f2d2ea2b79c520067f2f5193.png)

 ![285126-push.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/2/8/0281dc670a2e4181b92fac280d2b434656c674b8.png)

---

<div class="post-metadata">

**Author:** ![scrotey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@scrotey](https://forums.unrealengine.com/u/scrotey)\
**Post date:** [August 26, 2019, 1:49pm UTC](https://forums.unrealengine.com/t/firing-a-bullet-that-moves-player/453920/3 "2019-08-26T13:49:23Z")

</div>

Thanks but unfortunately this does not seem to work. When I add the physics and lock the rotation, my character cannot move? It shoots the other character just fine so that works. Any idea why I cannot move?

---

<div class="post-metadata">

**Author:** ![scrotey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@scrotey](https://forums.unrealengine.com/u/scrotey)\
**Post date:** [August 26, 2019, 1:57pm UTC](https://forums.unrealengine.com/t/firing-a-bullet-that-moves-player/453920/4 "2019-08-26T13:57:25Z")

</div>

To clarify, my character model is sat on a basic item (cube) sat in space. Maybe my issue is that I need to set the environment up better as well?

Appreciate the help! 🙂
