Announcement

Collapse
No announcement yet.

What's the best way to destroy an actor upon overlap?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    What's the best way to destroy an actor upon overlap?

    I want to make it so that when the actor overlaps with the boxcollision you can delete it by pressing a button. But how do I reach the actor? I thought maybe by using world transform or something but I didn't know how to make that work. Does someone know how to do this?

    Click image for larger version

Name:	Knipsel.PNG
Views:	35
Size:	360.1 KB
ID:	1836440
    How it looks in the game

    Click image for larger version

Name:	2.PNG
Views:	26
Size:	100.9 KB
ID:	1836441
    The blueprint for the overlapping. I think the best way is to enter some blueprints in place of the printstring after the branch.

    Click image for larger version

Name:	3.PNG
Views:	27
Size:	103.3 KB
ID:	1836442
    I thought it should look something like this, but this obviously doesn't work

    #2
    You could get all overlapping actors and then destroy them. Like this.
    Click image for larger version

Name:	ForumBP005.PNG
Views:	27
Size:	86.1 KB
ID:	1836451

    Comment


      #3
      Thank you! I didn't even know that node existed!

      Comment


        #4
        Let me try to understand, what is: Low Box? is this "get overlapping actors" node going to find any actor overlapping something? then why is Low Box the target? it will auto fill the "class filter"?

        Comment

        Working...
        X