# Triggering different events depending on camera perspective?

**URL:** <https://forums.unrealengine.com/t/triggering-different-events-depending-on-camera-perspective/450540>\
**Category:** Cinematics & Media\
**Tags:** perspective, unreal-engine, UE4, question, Blueprint\
**Created:** [June 12, 2019, 5:55am UTC](https://forums.unrealengine.com/t/triggering-different-events-depending-on-camera-perspective/450540 "2019-06-12T05:55:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_Annsswer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/_annsswer/32/484804_2.png) [@\_Annsswer](https://forums.unrealengine.com/u/_Annsswer)\
**Post date:** [June 12, 2019, 5:55am UTC](https://forums.unrealengine.com/t/triggering-different-events-depending-on-camera-perspective/450540/1 "2019-06-12T05:55:29Z")

</div>

I’m still very new to game development in general but I have an idea for a project which features levels similar to how the game “Layers of Fear” (running on the Unity Engine) accomplishes scene morphing depending on perspective or whether you have an object in view of the camera. The effect I’m trying to achieve is when looking away, it’ll hide/unhide walls or add other objects that weren’t there before and you’ll see them when turning back around. I was wondering how that would be accomplished within Unreal Engine.  
Thanks for any help!

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [June 12, 2019, 6:40am UTC](https://forums.unrealengine.com/t/triggering-different-events-depending-on-camera-perspective/450540/2 "2019-06-12T06:40:23Z")

</div>

Math… thats all you need. Remember outside of normal event you check condition and break the flow if condition is not met. So check camera orientation, make distance vector (subtract camera to object locations) and compare that vector rotation to camera rotation, you can do that in tick then player is in box.
