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"

Trying to do an explosive bullet

Hey everyone

I am trying to make an explosive bullet, I have been looking at many tutorials but they seem a little outdated and do not work entirely.

Right now what I have is a bullet that generates a radial force (which interacts with DMs very well) but I do not get the destroy sphere, spawn emitter, sound emitter, destroy actor.

All of these seem to not trigger for some reason.

Please halp :')

Here is what I have so far! alt text

EDIT: Clearer screenshots alt text alt text

Product Version: UE 4.15
Tags:
halp.jpg (216.1 kB)
screenshot (46).png (477.7 kB)
screenshot (45).png (417.0 kB)
more ▼

asked Jun 14 '17 at 07:35 PM in Blueprint Scripting

avatar image

CapnSpooks
16 1 4 4

avatar image navid100 Jun 14 '17 at 07:52 PM

Dude, I can't read your graph, please take a more clear screenshot.

avatar image CapnSpooks Jun 14 '17 at 08:07 PM

I have edited it.

avatar image Vaheva Jun 14 '17 at 07:53 PM

Please post 1:1 view screen if you need help.

avatar image CapnSpooks Jun 14 '17 at 08:07 PM

I just edited it sorry.

avatar image Vaheva Jun 14 '17 at 08:48 PM

Nice. I had project with explosive projectiles, but I removed it :P I'm trying it now, emiter is spawned as expected, but I see some problems with radial force/impulse. It is added to hit actor, but not in radius, I will check it later, maybe others can reply too.

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

2 answers: sort voted first

Try adding a trigger to it and grabbing "Event Begin Overlap" or even "Event Hit(Of the Trigger)" to activated ir

more ▼

answered Jun 14 '17 at 07:56 PM

avatar image

PedroAK
39 4 4 9

avatar image CapnSpooks Jun 14 '17 at 08:08 PM

not quite sure what you are referring to. I am kind of new to unreal at the moment.

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

I'm not sure this is best way. I had explosive bullet created before, but I not remember how it was done. Anyway, here is working "solution", different approach. You need parent class for all physic actors, in my case this is not problem, because I have all actors with parents somewhere. Then: alt text

You need to change Radius and Strength, because it depending on your actors size/weight. It adding impulse to hit physic actors only and creating radial impulse around to all actors of given class. Then spawning emitter (you can add sound), finally destroying projectile. This is changed projectile bp from 1st person example project.

Some start. I don't know why RadialForce component (impulse) not working, and I can't check it now, but effect is same I think.

more ▼

answered Jun 14 '17 at 09:31 PM

avatar image

Vaheva
1.3k 24 29 51

avatar image CapnSpooks Jun 14 '17 at 09:40 PM

thanks for the attention, but the radial force impulse IS working, the emitter, the sound, and the destroy actor are not.

avatar image CapnSpooks Jun 14 '17 at 09:40 PM

I will try it out later tho! thanks again.

avatar image Vaheva Jun 14 '17 at 09:44 PM

In this sample emiter working. Use Explosion from engine samples. With sound will be no problem too. Just spawn it at impact location.

avatar image CapnSpooks Jun 15 '17 at 10:56 AM

I tried this, but it only got the bullet to explode when it impacted with an other bullet, it didn't apply force to my DMs and it didn't explode on other surfaces

avatar image Vaheva Jun 15 '17 at 11:22 AM

This posted blueprint is my working sample. It exploding on any surface - physic, static, terrain. I not tried pawns, but should be too - is checked. It apply force only to all actors of class. You have to add parent actor for all actors you need add force. It will be handy anyway on later stages. You can also modify it to all actors with tag, what need smaller change in your code. As before - this is changed FirstPersonProjectile from fps sample project, so better try it first in this project, your projectile can have changes, that I do not know

avatar image CapnSpooks Jun 15 '17 at 11:30 AM

If I understand you correctly, you are saying that I should do it from the first person projectile of the base project, but this is already what I did and I copied your exact blueprint but it doesn't seem to apply force / explode on anything but itself.

avatar image Vaheva Jun 15 '17 at 01:30 PM

Do you have "get all actors of class"?

avatar image CapnSpooks Jun 16 '17 at 10:07 AM

not quite sure what you mean. Is it a node or a setting?

(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