# Can't Re-Enable collision through Construction Script

**URL:** <https://forums.unrealengine.com/t/cant-re-enable-collision-through-construction-script/1618528>\
**Category:** Issues and Bug Reporting\
**Tags:** bug, for-loop, collision-detection, unreal-engine, construction-script, Collision, bug-report, editor, question, Blueprint\
**Created:** [January 16, 2024, 6:08am UTC](https://forums.unrealengine.com/t/cant-re-enable-collision-through-construction-script/1618528 "2024-01-16T06:08:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony\_Dimovski](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anthony\_Dimovski](https://forums.unrealengine.com/u/Anthony_Dimovski)\
**Post date:** [January 16, 2024, 6:08am UTC](https://forums.unrealengine.com/t/cant-re-enable-collision-through-construction-script/1618528/1 "2024-01-16T06:08:46Z")

</div>

Hello, I’m having trouble with collisions not behaving as I expect it to  
Basically I have a road mesh + the sidewalks that are made up of multiple meshes  
The sidewalk meshes are grouped under a single mesh named ‘SideWalks’. I have a boolean switch to control visibility and collision

Problem: When disabling the collision initially, I’m unable to re-enable it using the boolean switch I created. It’s like it’s permanently disabled when I switch it off, or it just doesn’t refresh

I’ve spent a while experimenting and finding work arounds, but no luck. I’m also not super adept at blueprint stuff, so any help is appreciated

  
 ![2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/7/677a411d52d60aea9d625a5e7070caf6e8bfe722.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 16, 2024, 10:50am UTC](https://forums.unrealengine.com/t/cant-re-enable-collision-through-construction-script/1618528/2 "2024-01-16T10:50:22Z")

</div>

Why not use?

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/a/17a696aabe86bb4822916db665e808062218c19f.png)

Scene components are not static meshes, so I assume the cast is failing.

---

<div class="post-metadata">

**Author:** ![Anthony\_Dimovski](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anthony\_Dimovski](https://forums.unrealengine.com/u/Anthony_Dimovski)\
**Post date:** [January 17, 2024, 11:24am UTC](https://forums.unrealengine.com/t/cant-re-enable-collision-through-construction-script/1618528/3 "2024-01-17T11:24:20Z")

</div>

Sorry, but that doesn’t seem to work, as it’s expecting an actor, not a scene component. I want to be able to hide a specified parent + it’s children that I’ve setup in my blueprint scene. I’ve also tried Destroying the components when the condition is false but no luck.

![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/9/149d3fa8fc63ddf741712fb8aae06e2c75518ef3.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 17, 2024, 11:40am UTC](https://forums.unrealengine.com/t/cant-re-enable-collision-through-construction-script/1618528/4 "2024-01-17T11:40:55Z")

</div>

I get it… 🙂

There’s been a lot of references to this over the years, I assume it’s a ‘feature’ of the engine.

The solution is to set the collision at runtime 🙂

---

<div class="post-metadata">

**Author:** ![Anthony\_Dimovski](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anthony\_Dimovski](https://forums.unrealengine.com/u/Anthony_Dimovski)\
**Post date:** [January 18, 2024, 2:24am UTC](https://forums.unrealengine.com/t/cant-re-enable-collision-through-construction-script/1618528/5 "2024-01-18T02:24:59Z")

</div>

Ah I see, yeah you’re right. When I do it at runtime it seems to be working perfectly. Shame, I was hoping I could keep everything in the construction script

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [February 17, 2024, 2:25am UTC](https://forums.unrealengine.com/t/cant-re-enable-collision-through-construction-script/1618528/6 "2024-02-17T02:25:11Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
