How can I delete overlapping terrain blocks with Line Trace By Channel?

Chief Man
Wed, 14 Apr 2021 23:34:02 +0000
World Creation

I am trying to generate static mesh dungeons randomly throughout my terrain and I would like any block that collides with the dungeons to be removed from the game when the terrain spawns off the start. Any block that does not collide with the dungeons should spawn normally. Someone previously suggested that I line trace as the blocks are generated, and if a colliding block is detected, than it is removed. However, I cannot figure out how to add that into my project. I tried to implement it, but it removes my entire terrain rather than just the overlapping blocks. Here are some photos of my game preview and terrain construction script for reference:

6 posts - 1 participant