Enabling and Disabling Attached Static Mesh Collisions and Visibility using Flip Flop

Hey Folks,
in advance any and all help appreciated.

I have set up a scene which has a function that turns on and off the visibility of static meshes. These static meshes are attached in a parent and child structure. The parent has 8 children.

I have worked out turning on and off the visibility of the static meshes in blueprints.

However when I add the ability to enable or disable the collision of the actor it only affects the collision of the parent actor and not the children.

I am aware that I can include the 8 items into blueprints and enable / disable their collisions manually, however future parent objects may have about 100 children - so to keep it neat is there any way to only use the parent actor and still turn on and off the collision with the visibility

.

http://s7.postimg.org/c00xride2/visibility.jpg

Above I have included an image of my blueprint script.

Any help would be appreciated and high fives given.

There is a Get All Child Actors which contains an Array of all the Childs. If you loop For Each Loop on that array and set collision each time.

Is that maybe what you are looking for?

Did you solve it?
If so, please set my answer below to Solved so others with similar question can see it.

Im not sure your answer is the correct one, though I would encourage the sharing of the correct solution and accepting correcting answers. This question is from 2015 which could be why the user hasnt responded.

Ah I see, didn’t look for the date. I guess that’s why :slight_smile: