# Trying to shoot a bullet but it won't take in a Z rotation value

**URL:** <https://forums.unrealengine.com/t/trying-to-shoot-a-bullet-but-it-wont-take-in-a-z-rotation-value/487791>\
**Category:** World Creation\
**Tags:** rotation, bullet, unreal-engine, Physics, Collision, spawning-actors, Blueprint, question\
**Created:** [August 21, 2021, 10:24pm UTC](https://forums.unrealengine.com/t/trying-to-shoot-a-bullet-but-it-wont-take-in-a-z-rotation-value/487791 "2021-08-21T22:24:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![natiplease](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@natiplease](https://forums.unrealengine.com/u/natiplease)\
**Post date:** [August 21, 2021, 10:24pm UTC](https://forums.unrealengine.com/t/trying-to-shoot-a-bullet-but-it-wont-take-in-a-z-rotation-value/487791/1 "2021-08-21T22:24:51Z")

</div>

I am trying to spawn in a bullet using the location/rotation of the Muzzle socket in the default FPS blueprint. (i’m not using the FPS blueprint itself, but i added the assets to a new blueprint)  
that seems to be functioning fine until the bullet is shot. it shoots left and right fine, but even though the camera moves up and down, the bullet does not.

the bullet works fine if i disable collision, but i need to use hit events so i have to enable query and physics.

 ![346910-bulletstill.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/3/cf3719d5646f9142bdd121a47226c22863a41531.jpeg)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 22, 2021, 8:12am UTC](https://forums.unrealengine.com/t/trying-to-shoot-a-bullet-but-it-wont-take-in-a-z-rotation-value/487791/2 "2021-08-22T08:12:46Z")

</div>

If it works fine without collision, then it must be a collision issue, right?

Why not spawn it from just a touch further along the barrel?

If you have the default FP gun, there is a small collision volume in the end of the barrel.

---

<div class="post-metadata">

**Author:** ![natiplease](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@natiplease](https://forums.unrealengine.com/u/natiplease)\
**Post date:** [August 22, 2021, 5:20pm UTC](https://forums.unrealengine.com/t/trying-to-shoot-a-bullet-but-it-wont-take-in-a-z-rotation-value/487791/3 "2021-08-22T17:20:15Z")

</div>

just tried that, i took the socket location (muzzle) and increased the separate values (xyz) but even when the bullet was way above my head it still only shot straight.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 22, 2021, 6:19pm UTC](https://forums.unrealengine.com/t/trying-to-shoot-a-bullet-but-it-wont-take-in-a-z-rotation-value/487791/4 "2021-08-22T18:19:19Z")

</div>

Try just putting another socket in front of the gun. No math needed, just spawn at that socket.

---

<div class="post-metadata">

**Author:** ![natiplease](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@natiplease](https://forums.unrealengine.com/u/natiplease)\
**Post date:** [August 22, 2021, 10:53pm UTC](https://forums.unrealengine.com/t/trying-to-shoot-a-bullet-but-it-wont-take-in-a-z-rotation-value/487791/5 "2021-08-22T22:53:58Z")

</div>

hey found out my issue, thanks for the help. as it turns out i had the z input locked in the bullet actor. not sure how that happened.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 23, 2021, 6:46am UTC](https://forums.unrealengine.com/t/trying-to-shoot-a-bullet-but-it-wont-take-in-a-z-rotation-value/487791/6 "2021-08-23T06:46:57Z")

</div>

Ah, jolly good 🙂
