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"

[Closed] Destroy level actors

Is it possible to destroy specific actors present in the level, through a bp pawn? For example, I have a pawn with a trigger volume that should destroy every actor (having a specific tag) that overlaps the trigger

Product Version: UE 4.22
more ▼

asked Aug 13 '19 at 04:27 AM in Blueprint Scripting

avatar image

171 8 11 18

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

The question has been closed 5 days ago by IppolitoGermer for the following reason:

The question is answered, right answer was accepted

1 answer: sort voted first

Hello, Yes it is possible to destroy the actor that way. You would need to check the tag of the actor overlapping the trigger and if it has the right one -> destroy actor. If you need help with a specific problem that you have, you can also post a screenshot of your code so it's easier to understand.

Documentation: Spawn and Destroy an Actor with Blueprint

more ▼

answered Aug 13 '19 at 07:29 AM

avatar image

805 4 5 7

avatar image IppolitoGermer 6 days ago

This is my BP pawn alt text

and a level's actor

alt text

1.png (65.1 kB)
2.png (11.9 kB)
avatar image DonBusso 6 days ago

Looks good, now all you need to do is drag of Other Actor and destroy it for True condition in branch. Below a few examples how can this be done but it's essentially the same thing.

alt text

destroy.png (215.5 kB)
avatar image IppolitoGermer 6 days ago

Thank you!

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

Follow this question

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

Answers to this question