x

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"

How To Make A Gun Shoot

Hello

How would you make a gun shoot in unreal engine using blueprint? Would you raycast then play the flying bullet animation at the same time or just spawn a projectile or what?

Thanks, Mike

Product Version: Not Selected
Tags:
more ▼

asked Feb 22 '15 at 04:11 AM in Blueprint Scripting

avatar image

MikhailPK
16 5 6 9

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

Both are valid options. But when you should use one method over the other depends:

I will give you a few cases for each method:

Projectile spawn method:

  • Use this method when your 'bullets' has drop (affected by gravity) - eg: Grenade launcher

  • When your fire rate is low - Eg: Racket launcher

  • When the 'bullets' travel relatively slow - Eg: Rocket launcher

Ray trace method:

  • Use this when your bullets are instant hits - very fast moving (simple Sniper)

  • When the rate of fire is very high - LMG/Gattler gun -If you try to spawn 1 proecjtile for each bullet, that is a lot of Projectile actors to process. So you should instead do ray-cast.

When you use Ray-trace method, you can spwn some pretty particle effects to visualize the bullet's trajectory - Use a beam emitter?

more ▼

answered Feb 22 '15 at 04:42 AM

avatar image

mindfane
3.3k 154 50 271

avatar image MikhailPK Feb 22 '15 at 04:44 AM

Thanks for replying so soon I'll try it out tomorrow

(comments are locked)
10|2000 characters needed characters left

Here is the first part to the tutorial. https://www.youtube.com/watch?v=T30EHLj4Qa8

more ▼

answered Dec 10 '15 at 03:34 PM

avatar image

MCaddict
51 1 3 7

(comments are locked)
10|2000 characters needed characters left
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