# Don't allow teleport through movable doors

**URL:** <https://forums.unrealengine.com/t/dont-allow-teleport-through-movable-doors/379083>\
**Category:** Community & Industry Discussion\
**Tags:** teleport, movable, doors, unreal-engine, template, question\
**Created:** [December 12, 2016, 5:06pm UTC](https://forums.unrealengine.com/t/dont-allow-teleport-through-movable-doors/379083 "2016-12-12T17:06:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_2c124cb81](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2c124cb81](https://forums.unrealengine.com/u/anonymous_user_2c124cb81)\
**Post date:** [December 12, 2016, 5:06pm UTC](https://forums.unrealengine.com/t/dont-allow-teleport-through-movable-doors/379083/1 "2016-12-12T17:06:12Z")

</div>

Hi,

I’m using the default VR template from UE 4.14, and I have set up a door that is movable and when I try to teleport it allows to teleport behind the door (because I’ve set up a navmesh behind the door also). How can I limit the teleport if the door is closed?

Thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_92b1b36b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_92b1b36b](https://forums.unrealengine.com/u/anonymous_user_92b1b36b)\
**Post date:** [April 13, 2017, 7:02pm UTC](https://forums.unrealengine.com/t/dont-allow-teleport-through-movable-doors/379083/2 "2017-04-13T19:02:40Z")

</div>

Raycast from your to final position, if door is hit then cancel teleport
