How do i make the box in this image obstruct enemy sight so my player can hide behind it ?

So im making a prototype level and have been able to get my charcter to hide in the foliage from enemy sight but i tried the same logic for the boxes but it doesn’t do anything. The enemy still sees the player crocuhed behind the boxes.

Hey @Frankiefunkin! Welcome to the forums!

There are some details that are important: What collision channel your enemy’s sight works on (it’s likely “Visibility” but it could be “Camera” or something else), and is that box a blueprint. If it IS a blueprint that makes this easy. Open the blueprint, go to the details on your static mesh and go to the “Collision” section. Make sure that is set to block whatever channel the AI is using for sight.

Also, if the foliage is working but on a different method, it would help for you to explain that because we may be able to explain why it worked for the plants and not the box. :slight_smile:
Hope that helps!

1 Like

so the box and plants are bps. im not sure how to check what chanel the enemy sight works on im really new to using bps but im pretty sure i blocked visibility and it worked for the foliage but not the boxes

I can see in your window that your BP_BOX has a “ * “ next to it, which means it isn’t saved. That could be part of it!

Otherwise, we are going to need more information than we currently have. We need to see the blueprints, the collisions, etc before we can move forward. Pictures are worth a thousand words! :slight_smile:

this is the box bp

and this is the enemy bo

Can you open the box BP’s static mesh and make sure it has collision? Also I see you’re blocking visibility, what about everything else? Try Block on all channels! If that doesn’t work it’s probably either the way you set up vision or that the Static Mesh doesn’t have collision on it! :slight_smile: