How can I detect a specific overlap between two different collisions?

Hey!
I’m trying to create a blueprint with a box collision that checks constantly if two collisions from another blueprint are inside of it or not. And if they are inside, makes it possible for an event to trigger, and if they’re not inside, nothing happens - the event can’t be triggered.

I’ve been going in circles, because i want that area to only detect two specific sphere collisions, but instead it interacts with anything that overlaps it, even if I cast the overlap begin event to the specific actor’s blueprint.

Thank you!

Use Tags.

you have Actor A…it has a Box collider. Generate overlap events enabled and Overlap All dynamics as collision preset:

then you have actor B. I t has a sphere collider set with generate overlap events and also Overlap all Dynamics as collision preset. BUT also the sphere collider just ADD a tag component like this: in my example theGoodOne

Then in Actor A generate an overlap event ot the box collider like this:

and use the tag as condition to do something like this:

good luck!
Dany

6 Likes

You’re a lifesaver, thank you!

I implemented the node sequence you shared, on a begin/end overlap event and created a variable that on tick checks if the overlaps are triggered or not. It works perfectly!

The blueprint:

Thanks again! Have a good one!

1 Like

Glad to help! :slight_smile:

Dany

1 Like