# Help! My dude dosen't shoot straight!

**URL:** <https://forums.unrealengine.com/t/help-my-dude-dosent-shoot-straight/480511>\
**Category:** Community & Industry Discussion\
**Tags:** rotation, space, unreal-engine, local, question\
**Created:** [March 18, 2021, 3:15pm UTC](https://forums.unrealengine.com/t/help-my-dude-dosent-shoot-straight/480511 "2021-03-18T15:15:09Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joshua42777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joshua42777](https://forums.unrealengine.com/u/Joshua42777)\
**Post date:** [March 18, 2021, 3:15pm UTC](https://forums.unrealengine.com/t/help-my-dude-dosent-shoot-straight/480511/1 "2021-03-18T15:15:09Z")

</div>

Hello!  
I’m making a simple side scroller shooter.  
My bullets don’t shoot straight.  
To simplify things I would like the rotation of the socket to match workspace, NOT  
the position of the gun, is there a simple toggle that I have been missing?

Thanks!  
–Joshua

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [March 18, 2021, 3:39pm UTC](https://forums.unrealengine.com/t/help-my-dude-dosent-shoot-straight/480511/2 "2021-03-18T15:39:35Z")

</div>

Hello! Can you share some code lines or Blueprint nodes, that are used?

---

<div class="post-metadata">

**Author:** ![Joshua42777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joshua42777](https://forums.unrealengine.com/u/Joshua42777)\
**Post date:** [March 18, 2021, 4:39pm UTC](https://forums.unrealengine.com/t/help-my-dude-dosent-shoot-straight/480511/3 "2021-03-18T16:39:10Z")

</div>

I’m at work now, I’ll send screenshots as soon as I get home in about 8 hours!

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Joshua42777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joshua42777](https://forums.unrealengine.com/u/Joshua42777)\
**Post date:** [March 19, 2021, 2:12am UTC](https://forums.unrealengine.com/t/help-my-dude-dosent-shoot-straight/480511/4 "2021-03-19T02:12:28Z")

</div>

Here is about as much as I can give.

 ![332946-playerpt1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/0/e/60e83d168526c49a2feea509a7cc17f463750a7f.jpeg)

These are some screenshots.  
Hopefully There is an efficient solution,  
else I might need to use box triggers

---

<div class="post-metadata">

**Author:** ![Joshua42777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joshua42777](https://forums.unrealengine.com/u/Joshua42777)\
**Post date:** [March 19, 2021, 2:15am UTC](https://forums.unrealengine.com/t/help-my-dude-dosent-shoot-straight/480511/5 "2021-03-19T02:15:53Z")

</div>

![332948-playerpt2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/a/19a63ebb596fa50cb8a5f46ae8543f057f9bb9d4.jpeg)

---

<div class="post-metadata">

**Author:** ![Joshua42777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joshua42777](https://forums.unrealengine.com/u/Joshua42777)\
**Post date:** [March 19, 2021, 2:16am UTC](https://forums.unrealengine.com/t/help-my-dude-dosent-shoot-straight/480511/6 "2021-03-19T02:16:16Z")

</div>

![332949-animationwindow.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/4/3/d4342fd97f2a18476d4d6a8d2227ef0bd39c3f24.jpeg)

---

<div class="post-metadata">

**Author:** ![Joshua42777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joshua42777](https://forums.unrealengine.com/u/Joshua42777)\
**Post date:** [March 19, 2021, 2:16am UTC](https://forums.unrealengine.com/t/help-my-dude-dosent-shoot-straight/480511/7 "2021-03-19T02:16:36Z")

</div>

![332950-guneventgraph.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/c/24c9773f5835f2e3b84bda8da8dec9cecc74aa6e.jpeg)

---

<div class="post-metadata">

**Author:** ![Joshua42777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joshua42777](https://forums.unrealengine.com/u/Joshua42777)\
**Post date:** [March 19, 2021, 2:16am UTC](https://forums.unrealengine.com/t/help-my-dude-dosent-shoot-straight/480511/8 "2021-03-19T02:16:56Z")

</div>

![332951-projectile.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/6/666f2350579330c5639a6163bd9782643f166c1c.jpeg)

---

<div class="post-metadata">

**Author:** ![Joshua42777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joshua42777](https://forums.unrealengine.com/u/Joshua42777)\
**Post date:** [March 19, 2021, 2:17am UTC](https://forums.unrealengine.com/t/help-my-dude-dosent-shoot-straight/480511/9 "2021-03-19T02:17:36Z")

</div>

![332953-skeletonwindow.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/5/6c57f8e0d3dd965486bba134ce736a673518b999.jpeg)

sorry about all the comments the forums didn’t like my message when I combined them into one post

---

<div class="post-metadata">

**Author:** ![KuroPhoenix7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KuroPhoenix7](https://forums.unrealengine.com/u/KuroPhoenix7)\
**Post date:** [March 19, 2021, 7:04am UTC](https://forums.unrealengine.com/t/help-my-dude-dosent-shoot-straight/480511/10 "2021-03-19T07:04:13Z")

</div>

I think you should Snap to Target while attaching the rifle to the player.  
That way it will rotate riffle according to the socket

---

<div class="post-metadata">

**Author:** ![Joshua42777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joshua42777](https://forums.unrealengine.com/u/Joshua42777)\
**Post date:** [March 19, 2021, 1:42pm UTC](https://forums.unrealengine.com/t/help-my-dude-dosent-shoot-straight/480511/11 "2021-03-19T13:42:19Z")

</div>

I’ll try that tonight, thank you!

---

<div class="post-metadata">

**Author:** ![Joshua42777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joshua42777](https://forums.unrealengine.com/u/Joshua42777)\
**Post date:** [March 21, 2021, 1:44pm UTC](https://forums.unrealengine.com/t/help-my-dude-dosent-shoot-straight/480511/12 "2021-03-21T13:44:25Z")

</div>

I think I had a PEPCAC error. I apologize.  
I realized my guy was jogging and carrying the rifle. I need to explore Animation Montages and get the upper half to fire when his lower half is still running etc.

---

<div class="post-metadata">

**Author:** ![Joshua42777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joshua42777](https://forums.unrealengine.com/u/Joshua42777)\
**Post date:** [March 21, 2021, 1:44pm UTC](https://forums.unrealengine.com/t/help-my-dude-dosent-shoot-straight/480511/13 "2021-03-21T13:44:35Z")

</div>

I think I had a PEPCAC error. I apologize.  
I realized my guy was jogging and carrying the rifle. I need to explore Animation Montages and get the upper half to fire when his lower half is still running etc.
