Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to get projectile to spawn on muzzle socket?

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.

Product Version: UE 4.13
more ▼

asked Jan 05 '17 at 03:54 PM in VR

avatar image

5 2 5 7

avatar image CALIDREAMIN. Dec 29 '18 at 04:59 PM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

socket location

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.

socket_world.jpg (69.5 kB)
more ▼

answered Jan 05 '17 at 04:50 PM

avatar image

766 22 7 36

avatar image mchsskills Jan 06 '17 at 04:01 PM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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

test1.png (426.8 kB)
test2.png (114.5 kB)
more ▼

answered Jan 06 '17 at 07:32 PM

avatar image

Master Gebjeter
138 5 8 14

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question