# In-Game Level Editor, Need help with collision

**URL:** <https://forums.unrealengine.com/t/in-game-level-editor-need-help-with-collision/471716>\
**Category:** Community & Industry Discussion\
**Tags:** delete, in-game, linetrace, unreal-engine, editor, question\
**Created:** [September 21, 2020, 8:55pm UTC](https://forums.unrealengine.com/t/in-game-level-editor-need-help-with-collision/471716 "2020-09-21T20:55:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kabassmusic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kabassmusic](https://forums.unrealengine.com/u/Kabassmusic)\
**Post date:** [September 21, 2020, 8:55pm UTC](https://forums.unrealengine.com/t/in-game-level-editor-need-help-with-collision/471716/1 "2020-09-21T20:55:24Z")

</div>

I have created an in-game level editor that spawns objects based on linetrace. I can also delete objects based on Hit Actor.

My issue is that I can’t figure out how to stop allowing the player to delete the floor or other permanent actors.  
If I block collision from that linetrace, then I cant place objects on the floor.

Is there a way to do this to where I can detect the floor and place objects with linetrace but not allow it to be deleted?

---

<div class="post-metadata">

**Author:** ![Kabassmusic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kabassmusic](https://forums.unrealengine.com/u/Kabassmusic)\
**Post date:** [September 21, 2020, 9:47pm UTC](https://forums.unrealengine.com/t/in-game-level-editor-need-help-with-collision/471716/2 "2020-09-21T21:47:34Z")

</div>

Ok, after doing more research I have determined that I could put a Branch before deletion that checks the Hit Actors Tag and sets it to False if tag is “nodelete”.

I’m at work right now but will test this when I get home to confirm.

---

<div class="post-metadata">

**Author:** ![Kabassmusic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kabassmusic](https://forums.unrealengine.com/u/Kabassmusic)\
**Post date:** [September 22, 2020, 9:11pm UTC](https://forums.unrealengine.com/t/in-game-level-editor-need-help-with-collision/471716/3 "2020-09-22T21:11:05Z")

</div>

Yeah my previous comment above did the trick!
