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

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-the-box-in-this-image-obstruct-enemy-sight-so-my-player-can-hide-behind-it/2707372>\
**Category:** Game Production\
**Tags:** unreal-engine, question\
**Created:** [March 19, 2026, 2:50pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-box-in-this-image-obstruct-enemy-sight-so-my-player-can-hide-behind-it/2707372 "2026-03-19T14:50:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frankiefunkin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frankiefunkin](https://forums.unrealengine.com/u/Frankiefunkin)\
**Post date:** [March 19, 2026, 2:50pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-box-in-this-image-obstruct-enemy-sight-so-my-player-can-hide-behind-it/2707372/1 "2026-03-19T14:50:21Z")

</div>

![Screenshot 2026-03-19 142002](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/7/8/278ca7d1b4b58c908a10c19377c7cdf19612bc17.jpeg)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.

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [March 19, 2026, 5:26pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-box-in-this-image-obstruct-enemy-sight-so-my-player-can-hide-behind-it/2707372/2 "2026-03-19T17:26:33Z")

</div>

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. 🙂  
Hope that helps!

---

<div class="post-metadata">

**Author:** ![Frankiefunkin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frankiefunkin](https://forums.unrealengine.com/u/Frankiefunkin)\
**Post date:** [March 19, 2026, 8:42pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-box-in-this-image-obstruct-enemy-sight-so-my-player-can-hide-behind-it/2707372/3 "2026-03-19T20:42:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [March 19, 2026, 9:29pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-box-in-this-image-obstruct-enemy-sight-so-my-player-can-hide-behind-it/2707372/4 "2026-03-19T21:29:44Z")

</div>

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! 🙂

---

<div class="post-metadata">

**Author:** ![Frankiefunkin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frankiefunkin](https://forums.unrealengine.com/u/Frankiefunkin)\
**Post date:** [March 19, 2026, 10:12pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-box-in-this-image-obstruct-enemy-sight-so-my-player-can-hide-behind-it/2707372/5 "2026-03-19T22:12:16Z")

</div>

![Screenshot 2026-03-19 220938](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/e/d1e3a099e99a0ae74601b150c10f6d13167da746.png)

this is the box bp

---

<div class="post-metadata">

**Author:** ![Frankiefunkin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frankiefunkin](https://forums.unrealengine.com/u/Frankiefunkin)\
**Post date:** [March 19, 2026, 10:12pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-box-in-this-image-obstruct-enemy-sight-so-my-player-can-hide-behind-it/2707372/6 "2026-03-19T22:12:54Z")

</div>

![Screenshot 2026-03-19 221118](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/3/1/a3126733320874d8b79ce9ae4df1f9b13b771515.png)and this is the enemy bo

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [March 19, 2026, 11:06pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-box-in-this-image-obstruct-enemy-sight-so-my-player-can-hide-behind-it/2707372/7 "2026-03-19T23:06:32Z")

</div>

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! 🙂

---

<div class="post-metadata">

**Author:** ![DailyDragon1265](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DailyDragon1265](https://forums.unrealengine.com/u/DailyDragon1265)\
**Post date:** [July 13, 2026, 8:01pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-box-in-this-image-obstruct-enemy-sight-so-my-player-can-hide-behind-it/2707372/8 "2026-07-13T20:01:20Z")

</div>

If the enemy can still see the player, it’s likely that the box isn’t blocking the line of sight. Make sure the box has the correct collision settings and that your enemy’s sight or visibility trace is set to treat it as an obstacle. You can also enable any debug view for the AI’s vision or line traces to confirm whether the trace is hitting the box or passing through it. That usually makes it much easier to find the issue.

---

<div class="post-metadata">

**Author:** ![BusterSolomon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BusterSolomon](https://forums.unrealengine.com/u/BusterSolomon)\
**Post date:** [August 24, 2026, 3:50pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-box-in-this-image-obstruct-enemy-sight-so-my-player-can-hide-behind-it/2707372/9 "2026-08-24T15:50:41Z")

</div>

Make sure your box mesh has its collision set to block the **Visibility** trace channel under its Collision Presets, as the AI’s line of sight or `AIPerception` sight sense relies on this trace channel to detect occlusion. If the enemy still sees you, check your foliage hiding logic to ensure you are not relying on a specific foliage overlap event to toggle the player’s visibility state instead of using actual line-of-sight raycasts.
