# Is there a way to set up collision priority?

**URL:** <https://forums.unrealengine.com/t/is-there-a-way-to-set-up-collision-priority/1695662>\
**Category:** C++\
**Tags:** collider, collision-detection, unreal-engine, collision-responses, Collision, CPP, question\
**Created:** [February 17, 2024, 7:43pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-set-up-collision-priority/1695662 "2024-02-17T19:43:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheoRat3](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/theorat3/32/897542_2.png) [@TheoRat3](https://forums.unrealengine.com/u/TheoRat3)\
**Post date:** [February 17, 2024, 7:43pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-set-up-collision-priority/1695662/1 "2024-02-17T19:43:21Z")

</div>

I’ve spawned target meshes on to my enemy skeletons and I was having issues getting the hits to register, but what I think the issue is that the line traces are hitting the enemy’s capsule collider before the target’s collision. Is there a way to set up a priority or maybe use a multi trace differentiate the two? Preferably I would like to stick to my line trace single if I can.

---

<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:** [February 17, 2024, 7:52pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-set-up-collision-priority/1695662/2 "2024-02-17T19:52:24Z")

</div>

Are the capsules set to ‘block all’? ‘Pawn’ would be better, then you can just carry on using a visibility line trace.

---

<div class="post-metadata">

**Author:** ![TheoRat3](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/theorat3/32/897542_2.png) [@TheoRat3](https://forums.unrealengine.com/u/TheoRat3)\
**Post date:** [February 17, 2024, 7:56pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-set-up-collision-priority/1695662/3 "2024-02-17T19:56:13Z")

</div>

They have custom preset right now, overlapping with my custom line trace for bullet hits.

---

<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:** [February 17, 2024, 8:29pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-set-up-collision-priority/1695662/4 "2024-02-17T20:29:13Z")

</div>

Ok, and you set the capsule to ignore your custom trace?

---

<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:** [March 18, 2024, 10:36pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-set-up-collision-priority/1695662/6 "2024-03-18T22:36:24Z")

</div>

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