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"

destroy all object inside a sphere trace

hi, trying to create a Bomberman Game. But how can i destroy all the objects that is inside of a sphere trace when the bomb explode?

Product Version: Not Selected
more ▼

asked Apr 08 '15 at 09:46 AM in Blueprint Scripting

avatar image

8 2 3 6

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

1 answer: sort voted first

Get a list of overlapping actors, then iterate through each one destroying them like so:

alt text

If you only want to destroy the first one that it hits, use regular sphere trace instead of multi-sphere trace.

bomberman.png (194.6 kB)
more ▼

answered Apr 08 '15 at 10:14 AM

avatar image

278 16 23 30

avatar image Scottyaim Apr 08 '15 at 02:02 PM

I tried this but i did not work. I created the function in my bomb blueprint and called it before it explodes. But no actors destroys.

avatar image miracle7 Apr 09 '15 at 01:34 AM

Change the draw debug so you can see what is happening, if it is overlapping actors check their collision settings. This should be enough to put you on the right track, you'll need to do some debugging for yourself.

(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