# how can i get  a trigger volume activated only by looking at it

**URL:** <https://forums.unrealengine.com/t/how-can-i-get-a-trigger-volume-activated-only-by-looking-at-it/435631>\
**Category:** Cinematics & Media\
**Tags:** line-trace, trigger, view, unreal-engine, question\
**Created:** [October 14, 2018, 6:30pm UTC](https://forums.unrealengine.com/t/how-can-i-get-a-trigger-volume-activated-only-by-looking-at-it/435631 "2018-10-14T18:30:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DarkLegendx5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DarkLegendx5](https://forums.unrealengine.com/u/DarkLegendx5)\
**Post date:** [October 14, 2018, 6:30pm UTC](https://forums.unrealengine.com/t/how-can-i-get-a-trigger-volume-activated-only-by-looking-at-it/435631/1 "2018-10-14T18:30:59Z")

</div>

how can i get a trigger volume starts an event only by looking at the trigger volume or a specific object on it (camera player view it and nothing blocking its view )  
i don’t know how to do it even with line trace

---

<div class="post-metadata">

**Author:** ![ThompsonN13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ThompsonN13](https://forums.unrealengine.com/u/ThompsonN13)\
**Post date:** [October 14, 2018, 7:42pm UTC](https://forums.unrealengine.com/t/how-can-i-get-a-trigger-volume-activated-only-by-looking-at-it/435631/2 "2018-10-14T19:42:33Z")

</div>

its actually pretty simple if you wanted to use a line trace. you could just trace for objects and use a custom collision channel or you could trace the visible channel then use a cast to determine if its a trigger volume that you hit. below is a brief example of using a cast to determine if the hit actor is a trigger volume. there is probably a better way to go about it though rather than relying on tick.

 ![256579-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/3/d03980abcd29944105cc666235f1ba5100d19141.png)
