# Get all actors inside another actor (or box)

**URL:** <https://forums.unrealengine.com/t/get-all-actors-inside-another-actor-or-box/1683796>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [February 12, 2024, 2:17pm UTC](https://forums.unrealengine.com/t/get-all-actors-inside-another-actor-or-box/1683796 "2024-02-12T14:17:55Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![XxpiingyxX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XxpiingyxX](https://forums.unrealengine.com/u/XxpiingyxX)\
**Post date:** [February 13, 2024, 9:27am UTC](https://forums.unrealengine.com/t/get-all-actors-inside-another-actor-or-box/1683796/5 "2024-02-13T09:27:19Z")

</div>

Sadly those did not really work. This is how I used them:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/7/0/c700b91e23f4e44f160c0f80be6fd7121d2ec1ab.jpeg)

Then I used the _Actors to ignore_ array in a Line trace node, and the line trace did in fact not ignore those actors:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/5/c/85c199eab7a6e42ac850e3ddb78a873b8ac75950.jpeg)

So what I’m doing is multiple Line Traces along a mesh that looks like a pipe (more info about this here: [Line Trace 360 around mesh](https://forums.unrealengine.com/t/line-trace-360-around-mesh/1626160)), but the problem is that there might be other Actors that’s too close and will interfere with the Line Trace. I therefore want to ignore those other actors.

My first solution, where I use a _Box Overlap Actors_ and set the extent to be the mesh bounding sphere (the picture in the original post), worked perfectly, to ignore the other actors, up until yesterday… I have already looked over my nodes to see if I have disconnected something or accidentally changed a value or two, but nothing seems to be different.

I have therefore made a temporary solution where I changed the _Object Channel_ and collision preset to a custom ones:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/2/7027fa05694e699029016b1f8a548d1aef4cfa6b.png)  
I then made a button in my Utility Widget so I can get all the meshes in my level and set them to the new Collision Preset. I also add the Object Channel to the _ObjectType_ variable  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/9/0b994576aff81be777e02e0b80a6605b5b68bb20.png)  
Then right before I do the Line Trace I change the collision preset back to _BlockAll_ for the selected Actor and that seems to do the trick right now. With this solution, I don’t actually need to Ignore any actors.  
I’m just so confused why the _BoxOverlapActors_ node doesn’t work this week.

---

_[View the full topic](https://forums.unrealengine.com/t/get-all-actors-inside-another-actor-or-box/1683796)._
