Overlap on trigger issue

I have a boat with canons, on either side i’v added a trigger box. When the player overlaps the boat should fire. This works fine, except when the player fires at the boat, the hit explodes next to the boat where the trigger box starts. The scenario should be: trigger when player overlaps and fire at player, but hit by player on boat should be on the boat not trigger box. How can I make this happen? I use an on component begin overlapt. Is there a way to turn off collision for certain objects? Thanks!

The boat with trigger boxes:

Hi Geckoo,

You can use the “Other Actor” pin on the Overlap event - check if it’s “GetPlayerCharacter” or “GetPlayerPawn” and only process if it is…

1 Like

If you select your trigger boxes and scroll down, you will find the collisions. You can change the settings to overlap the projectile.
Hope This Helps! :+1:

1 Like

Thanks, I had to rearrange a few things en then it worked with your suggestion. I had the overlap in the cannonball and had trouble getting the trigger box. Now I’ve added the overlap to the boat, much easier.

1 Like

Thanks for you reply! The collision was difficult to set because of the water body. It would keep messing up de buoyancy. So I didn’t wanted to change that.