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 do i make a bullet explode on impact with a wall or player, not a turret

I am working on a game that has a turret that shoots massive bullets at the player. alt text

Now what I want the bullet to do is whenever it hits something that is not a turret to explode. The reason for this is right now whenever the bullet spawns it blows up right away as I believe it's colliding with the turret

alt text

How would I check to see if it's colliding with something other than the turret? (I would like this to work in a blueprint). I have seen similar questions but I can never get them to work with what I need. The bullet always ends up ignoring everything and just fazing through objects.

In short. How can I make the bullet explode on impact with something other than the turret?

Product Version: Not Selected
Tags:
1234214.png (253.1 kB)
129380.png (43.2 kB)
more ▼

asked Feb 06 '17 at 12:31 AM in Blueprint Scripting

avatar image

the creator of games
31 2 6 5

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

1 answer: sort voted first

Use a check branch from the Event Hit or Event Begin Overlap to check if the Other Actor is a turret, if it is do nothing/leave the logic for true blank, and if false run the logic to explode etc.

more ▼

answered Feb 06 '17 at 12:34 AM

avatar image

Black Phoenyx
4.2k 165 9 170

avatar image the creator of games Feb 07 '17 at 07:56 PM

Do you mind sending a screenshot of what that would look like?

avatar image Black Phoenyx Feb 07 '17 at 08:22 PM

alt text

eventhitcheck.png (109.4 kB)
avatar image the creator of games Feb 08 '17 at 03:26 AM

It still does not work. I have tried that a number of times actually but I was curious to see if you did it in a different manner. I have even checked for other objects that it could be but still have found no way to stop the bullets just blowing up right away alt text

1234132424.png (82.6 kB)
avatar image Black Phoenyx Feb 08 '17 at 05:48 AM

Is it firing the destroy actor as soon as it is spawned? I can't really see in the details in the screenshot, it is tiny. What is the overlap detection set on, a collision mesh or something else? You can use a print string from other actor to print out what it is colliding with to help better narrow down what is happening

avatar image the creator of games Feb 10 '17 at 01:57 AM

Would it be possible to have the bullet output what it is colliding with? If so, please send me a screenshot

avatar image Black Phoenyx Feb 10 '17 at 06:02 AM

You can use a print string to get the name, like this:

alt text

(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