Checking overlap of components in different classes

I am making a racing game, I have a system where the player can attach to an AI vehicle to steal boost. I have box colliders in the areas I need for both the player and the AI. However, when trying to set up the script to check if the two colliders are overlapping I am unsure of what to do. I can get it to check overlap with the actor but I need it to be the specific colliders. I cannot find a way to reference just the box collider from the AI vehicle.

I am trying to get it so that when a button is pressed if the colliders are overlapping then it will run the sequence of events.

You could try something like “Get Overlapping Actors”. Here’s an example:

You’d have to select the class filter for the AI Actor class, and the Cast to Object would cast to the AI Actor.

Or something like this, however you plan to implement the check:

So what I need to do is access and check a specific box collider on the AI, rather than just if it is overlapping with any of them as there are multiple colliders for different things on the player and AI.

In that case, you can use the logic from the first screenshot, replacing “Get Overlapping Actors” with “Get Overlapping Components”, and casting to the specific collision component on the AI.