# Line trace separate triggers in one blueprint actor

**URL:** <https://forums.unrealengine.com/t/line-trace-separate-triggers-in-one-blueprint-actor/439515>\
**Category:** Blueprint\
**Tags:** line-trace, trigger, trigger-volume, unreal-engine, question\
**Created:** [December 14, 2018, 6:04pm UTC](https://forums.unrealengine.com/t/line-trace-separate-triggers-in-one-blueprint-actor/439515 "2018-12-14T18:04:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LordZedd\_02](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LordZedd\_02](https://forums.unrealengine.com/u/LordZedd_02)\
**Post date:** [December 14, 2018, 6:04pm UTC](https://forums.unrealengine.com/t/line-trace-separate-triggers-in-one-blueprint-actor/439515/1 "2018-12-14T18:04:51Z")

</div>

Hello, how to add two triggers to one object and activate them using line trace?

Example:  
I would like to use door in two different ways. First when I look at the door handle I can do action A (open door) and by looking at the knocker I can do action B (knock on the door).

I know how to do this using overlap event but is it possible to achieve same effect using line trace?

Thx in advanced.

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [December 15, 2018, 3:33am UTC](https://forums.unrealengine.com/t/line-trace-separate-triggers-in-one-blueprint-actor/439515/2 "2018-12-15T03:33:05Z")

</div>

It is possible, you would have to have some way to distinguish the “knocker” from the “handle” so either have 2 separate collision boxes for each part or make them out of 2 different meshes etc. Then line trace to each one and run different logic off of what object/mesh/collision box the line trace hits.

---

<div class="post-metadata">

**Author:** ![LordZedd\_02](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LordZedd\_02](https://forums.unrealengine.com/u/LordZedd_02)\
**Post date:** [December 15, 2018, 10:35am UTC](https://forums.unrealengine.com/t/line-trace-separate-triggers-in-one-blueprint-actor/439515/3 "2018-12-15T10:35:53Z")

</div>

Hey thanks for the answer, but how can I determinate what object/mesh line trace hit?

Right now my door is a one blueprint actor and when its hit by the line trace it sees it as a one object. I was trying to add additional triggers inside door blueprint either as mesh or another blueprint actor but without success.

In case of blueprint actor I was even trying casting which in theory works but when im adding it to blueprint door as a new component it looses their logic.

Here is my current setup, again main question is how to trigger object hit by a line trace?

 ![262443-linetrace-01.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/0/a/20afa910ed6ced068f8afefab99f969e4cd6cd3f.jpeg)
