# How to get projectile to spawn on muzzle socket?

**URL:** <https://forums.unrealengine.com/t/how-to-get-projectile-to-spawn-on-muzzle-socket/380998>\
**Category:** XR Development\
**Tags:** sockets, unreal-engine, first-person-templat, projectile, Blueprint, question\
**Created:** [January 5, 2017, 3:54pm UTC](https://forums.unrealengine.com/t/how-to-get-projectile-to-spawn-on-muzzle-socket/380998 "2017-01-05T15:54:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mchsskills](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mchsskills](https://forums.unrealengine.com/u/mchsskills)\
**Post date:** [January 5, 2017, 3:54pm UTC](https://forums.unrealengine.com/t/how-to-get-projectile-to-spawn-on-muzzle-socket/380998/1 "2017-01-05T15:54:38Z")

</div>

I am trying to create an fps type game in VR and I have an issue with the projectile spawning when I am shooting. I am trying to have the projectile fire from the muzzle socket on the weapon but whenever I test out the game and pull the trigger to shoot the projectile continues to spawn from the middle of my body instead of from the muzzle of the gun. I don’t know if the problem is because the gun is paired to one of the motion controllers or not. I am using the first person template blueprints so that the game can be played without VR as well.

---

<div class="post-metadata">

**Author:** ![Looniper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Looniper](https://forums.unrealengine.com/u/Looniper)\
**Post date:** [January 5, 2017, 4:50pm UTC](https://forums.unrealengine.com/t/how-to-get-projectile-to-spawn-on-muzzle-socket/380998/2 "2017-01-05T16:50:10Z")

</div>

![120943-socket_world.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/b/14b1fef71c3cc613a898a9e2c6df8bbe2b66b4b2.jpeg)

Make sure you’re using [Get Socket Location] rather than one of the Relative location modes.  
Spawning a projectile is a separate class, not a child, so you want world coordinates.

---

<div class="post-metadata">

**Author:** ![mchsskills](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mchsskills](https://forums.unrealengine.com/u/mchsskills)\
**Post date:** [January 6, 2017, 4:01pm UTC](https://forums.unrealengine.com/t/how-to-get-projectile-to-spawn-on-muzzle-socket/380998/3 "2017-01-06T16:01:33Z")

</div>

That worked for the most part but I still have a problem with it. Even though my projectile is shooting from the muzzle socket but it isnt shooting straight out of my weapon and is shooting direclty left and right. I don’t know what is causing it to do this. I apologize for my lack of knowledge I have never made an FPS much less a VR game before.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8d18c51c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8d18c51c](https://forums.unrealengine.com/u/anonymous_user_8d18c51c)\
**Post date:** [January 6, 2017, 7:32pm UTC](https://forums.unrealengine.com/t/how-to-get-projectile-to-spawn-on-muzzle-socket/380998/4 "2017-01-06T19:32:31Z")

</div>

Add an Arrow-Componont to your gun an get his transform like the picture

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41da49a91](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41da49a91](https://forums.unrealengine.com/u/anonymous_user_41da49a91)\
**Post date:** [December 29, 2018, 4:59pm UTC](https://forums.unrealengine.com/t/how-to-get-projectile-to-spawn-on-muzzle-socket/380998/5 "2018-12-29T16:59:43Z")

</div>

any chane you could tell me the node you put before the gun… can see the other node its cut off
