# How to make hole in wall in real time

**URL:** <https://forums.unrealengine.com/t/how-to-make-hole-in-wall-in-real-time/316100>\
**Category:** Blueprint\
**Tags:** how-do-i, unreal-engine, Blueprint, question\
**Created:** [April 23, 2015, 3:36pm UTC](https://forums.unrealengine.com/t/how-to-make-hole-in-wall-in-real-time/316100 "2015-04-23T15:36:09Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![VoidGoat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VoidGoat](https://forums.unrealengine.com/u/VoidGoat)\
**Post date:** [April 23, 2015, 3:36pm UTC](https://forums.unrealengine.com/t/how-to-make-hole-in-wall-in-real-time/316100/1 "2015-04-23T15:36:09Z")

</div>

I need to make a hole in a wall in real time and cannot figure out how to do it. I tried to use BSP geometry but this can’t be used in real time with blueprints. If anyone knows how to do this your help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c0687f281](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c0687f281](https://forums.unrealengine.com/u/anonymous_user_c0687f281)\
**Post date:** [April 23, 2015, 4:17pm UTC](https://forums.unrealengine.com/t/how-to-make-hole-in-wall-in-real-time/316100/2 "2015-04-23T16:17:04Z")

</div>

Hmm, sounds indeed as a perfect match for BSP…

Maybe you could use a translucent material and set the alpha to 0 on the right place through a dynamic material or something…?

---

<div class="post-metadata">

**Author:** ![VoidGoat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VoidGoat](https://forums.unrealengine.com/u/VoidGoat)\
**Post date:** [April 23, 2015, 4:36pm UTC](https://forums.unrealengine.com/t/how-to-make-hole-in-wall-in-real-time/316100/3 "2015-04-23T16:36:53Z")

</div>

I need to be able to move my character through the hole as well

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [April 23, 2015, 6:35pm UTC](https://forums.unrealengine.com/t/how-to-make-hole-in-wall-in-real-time/316100/4 "2015-04-23T18:35:56Z")

</div>

Hi VoidGoat,

Unfortunately collision is baked in when you play the game. However, there are ways to create something similar to what you are attempting to accomplish. I’m attaching two images, the first is a “hole” blueprint that is simply a box or sphere collision. You will need to create a custom object collision channel in Project Settings\>Collision for this setup to work.

 ![39965-holebp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/b/13b52095871eb61a418fe27a7519cc6bd026ad9e.png)

The second image is the player character spawning the object into place. It does a line trace from the camera to the location, searching specifically for objects with the collision type , if it finds one it creates a hole in the direction the player is facing. You can change this to a direct hole by using impact normal as opposed to hit location.

 ![39966-spawn_hole.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/d/1ddd3ff56cbb7d298bcdf9ddd9b42c5f2b45d490.png)

The only thing this setup doesn’t quite do yet is mask the mesh material to create a “hole”. I think location based opacity will work, however I have not tested this on my end yet. If you would like to learn more in the meantime there is a fantastic tutorial on location based opacity here:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

---

<div class="post-metadata">

**Author:** ![VoidGoat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VoidGoat](https://forums.unrealengine.com/u/VoidGoat)\
**Post date:** [April 23, 2015, 7:50pm UTC](https://forums.unrealengine.com/t/how-to-make-hole-in-wall-in-real-time/316100/5 "2015-04-23T19:50:06Z")

</div>

wow thank you! I’ll try and set this up and check out the location based opacity.

---

<div class="post-metadata">

**Author:** ![VoidGoat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VoidGoat](https://forums.unrealengine.com/u/VoidGoat)\
**Post date:** [April 23, 2015, 9:01pm UTC](https://forums.unrealengine.com/t/how-to-make-hole-in-wall-in-real-time/316100/6 "2015-04-23T21:01:42Z")

</div>

what parameters should the HoleThrough collision channel have?

---

<div class="post-metadata">

**Author:** ![VoidGoat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VoidGoat](https://forums.unrealengine.com/u/VoidGoat)\
**Post date:** [April 23, 2015, 9:02pm UTC](https://forums.unrealengine.com/t/how-to-make-hole-in-wall-in-real-time/316100/7 "2015-04-23T21:02:17Z")

</div>

and do you need to make a preset?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [April 23, 2015, 9:04pm UTC](https://forums.unrealengine.com/t/how-to-make-hole-in-wall-in-real-time/316100/8 "2015-04-23T21:04:23Z")

</div>

I set the collision to initially block all so that it works as if the wall was a traditional wall. The collision setup should be set on any object you want the “hole” to affect. To do this, go to the details pane\>Collision and select custom, then set the object dropdown menu to your collision object.

---

<div class="post-metadata">

**Author:** ![VoidGoat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VoidGoat](https://forums.unrealengine.com/u/VoidGoat)\
**Post date:** [April 24, 2015, 1:53am UTC](https://forums.unrealengine.com/t/how-to-make-hole-in-wall-in-real-time/316100/9 "2015-04-24T01:53:30Z")

</div>

Woo! I finally got it working. thanks for your help

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0b2e2e2e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0b2e2e2e1](https://forums.unrealengine.com/u/anonymous_user_0b2e2e2e1)\
**Post date:** [November 15, 2015, 9:27am UTC](https://forums.unrealengine.com/t/how-to-make-hole-in-wall-in-real-time/316100/10 "2015-11-15T09:27:04Z")

</div>

This [link](https://wiki.unrealengine.com/Location_Based_Opacity_in_UE4_-_Part_1) is a possible way to make a hole visually appear.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [November 16, 2015, 4:06pm UTC](https://forums.unrealengine.com/t/how-to-make-hole-in-wall-in-real-time/316100/11 "2015-11-16T16:06:44Z")

</div>

That is one way to do it. The problem you will have to account for is the internal portion of an asset. The opacity does create a hole, however if a player turns sideways within the asset they’ll be able to see directly out of it due to hollow interiors, etc. Additional math will be needed to “cut” a hole and create a material that shows through the object, of which I unfortunately don’t have information on at present.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0b2e2e2e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0b2e2e2e1](https://forums.unrealengine.com/u/anonymous_user_0b2e2e2e1)\
**Post date:** [November 17, 2015, 12:40pm UTC](https://forums.unrealengine.com/t/how-to-make-hole-in-wall-in-real-time/316100/12 "2015-11-17T12:40:16Z")

</div>

Exactly, I tried some addition and subtraction in the editor to find and intersection between the negative and positive mask, but I didn’t fare well with it… But now I would use a static mesh to hide it. It’s easy for me because I’m just making holes in a floor, so the same static mesh can be used, only diff texture coordinates.  
Is there a way to make multiple holes like this,? Visually I mean?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [November 18, 2015, 2:32pm UTC](https://forums.unrealengine.com/t/how-to-make-hole-in-wall-in-real-time/316100/13 "2015-11-18T14:32:38Z")

</div>

While I’m certain you can, I unfortunately do not know how one would do that. Perhaps getting a radius around the hit location and applying the opacity that way? Or potentially using a decal over the area?

---

<div class="post-metadata">

**Author:** ![Sir\_Quizalot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sir\_Quizalot](https://forums.unrealengine.com/u/Sir_Quizalot)\
**Post date:** [October 9, 2016, 3:48am UTC](https://forums.unrealengine.com/t/how-to-make-hole-in-wall-in-real-time/316100/14 "2016-10-09T03:48:42Z")

</div>

Is the channel still called hole through?

---

<div class="post-metadata">

**Author:** ![Sir\_Quizalot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sir\_Quizalot](https://forums.unrealengine.com/u/Sir_Quizalot)\
**Post date:** [October 9, 2016, 3:49am UTC](https://forums.unrealengine.com/t/how-to-make-hole-in-wall-in-real-time/316100/15 "2016-10-09T03:49:36Z")

</div>

Alternatively, wouldn’t it be easier to just have separate collision spheres/cubes for walls. Then, disable them and alpha out material during runtime.

---

<div class="post-metadata">

**Author:** ![sorfos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sorfos](https://forums.unrealengine.com/u/sorfos)\
**Post date:** [August 31, 2017, 1:18pm UTC](https://forums.unrealengine.com/t/how-to-make-hole-in-wall-in-real-time/316100/16 "2017-08-31T13:18:33Z")

</div>

Hi, when i press the button instead of creating a hole, I create a mesh …

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e57dc164](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e57dc164](https://forums.unrealengine.com/u/anonymous_user_e57dc164)\
**Post date:** [March 19, 2018, 7:18pm UTC](https://forums.unrealengine.com/t/how-to-make-hole-in-wall-in-real-time/316100/17 "2018-03-19T19:18:13Z")

</div>

what is the holeinwall class?
