# Multi trace and response channel and first index

**URL:** <https://forums.unrealengine.com/t/multi-trace-and-response-channel-and-first-index/485126>\
**Category:** World Creation\
**Tags:** Trace, array-nodes, index, unreal-engine, Physics, collision-responses, Collision, question\
**Created:** [June 20, 2021, 11:59am UTC](https://forums.unrealengine.com/t/multi-trace-and-response-channel-and-first-index/485126 "2021-06-20T11:59:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Game\_dev\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Game\_dev\_1](https://forums.unrealengine.com/u/Game_dev_1)\
**Post date:** [June 20, 2021, 11:59am UTC](https://forums.unrealengine.com/t/multi-trace-and-response-channel-and-first-index/485126/1 "2021-06-20T11:59:35Z")

</div>

I am sending a multi trace and I want to get hit objects, which blocks my custom collision channel. and if my trace hits more than 1 object with my custom collision channel I want to get first of them (index 0). How can I do this?

---

<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:** [June 20, 2021, 12:40pm UTC](https://forums.unrealengine.com/t/multi-trace-and-response-channel-and-first-index/485126/2 "2021-06-20T12:40:35Z")

</div>

![341898-screenshot-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/a/49a7320b6fef343b010aa302dd97bf32e1964d83.jpeg)

---

<div class="post-metadata">

**Author:** ![Game\_dev\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Game\_dev\_1](https://forums.unrealengine.com/u/Game_dev_1)\
**Post date:** [June 20, 2021, 1:24pm UTC](https://forums.unrealengine.com/t/multi-trace-and-response-channel-and-first-index/485126/3 "2021-06-20T13:24:06Z")

</div>

Lets say my own collision channeln is :X

Multi trace hits more than 1 objects. Some of them are not X but some of them are X. I want to find which of them are X and which is the first hitying object with X

---

<div class="post-metadata">

**Author:** ![Game\_dev\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Game\_dev\_1](https://forums.unrealengine.com/u/Game_dev_1)\
**Post date:** [June 20, 2021, 1:24pm UTC](https://forums.unrealengine.com/t/multi-trace-and-response-channel-and-first-index/485126/4 "2021-06-20T13:24:48Z")

</div>

Lets say my own collision channeln is :X

Multi trace hits more than 1 objects. Some of them are not X but some of them are X. I want to find which of them are X and which is the first hitying object with X

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 20, 2021, 1:43pm UTC](https://forums.unrealengine.com/t/multi-trace-and-response-channel-and-first-index/485126/5 "2021-06-20T13:43:39Z")

</div>

Either have the undesired meshes ignore X or get the first one that fits the criteria:

 ![341906-screenshot-4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/8/8a83f474224393ee0085da1ffa46afabb84d221a.png)

For Loop _With_ Break would be more suitable. Would that work?
