# teleport player by trigger click (on vive) if specific object is traced

**URL:** <https://forums.unrealengine.com/t/teleport-player-by-trigger-click-on-vive-if-specific-object-is-traced/413141>\
**Category:** XR Development\
**Tags:** teleportation, line-trace, Vive, unreal-engine, question, Blueprint\
**Created:** [December 26, 2017, 2:08pm UTC](https://forums.unrealengine.com/t/teleport-player-by-trigger-click-on-vive-if-specific-object-is-traced/413141 "2017-12-26T14:08:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kishindba](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kishindba](https://forums.unrealengine.com/u/kishindba)\
**Post date:** [December 26, 2017, 2:08pm UTC](https://forums.unrealengine.com/t/teleport-player-by-trigger-click-on-vive-if-specific-object-is-traced/413141/1 "2017-12-26T14:08:36Z")

</div>

hello, i am new in UE, so i need help with player teleportation. i used line trace for selecting specific object, but i don t know how to connect it to player teleportation blueprint.  
thanks in advance.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dceb25d5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dceb25d5](https://forums.unrealengine.com/u/anonymous_user_dceb25d5)\
**Post date:** [December 26, 2017, 3:57pm UTC](https://forums.unrealengine.com/t/teleport-player-by-trigger-click-on-vive-if-specific-object-is-traced/413141/2 "2017-12-26T15:57:37Z")

</div>

Kishindba,

There is a SetActorLocation node you can use. First trace the object like you were doing, then break the hit result up and grab the actor reference you are looking at and get its actor location. Then you set your player location to that vector location, usually I add a fading black effect so that it’s not so abrupt for the player. Below is two screen-caps of my teleport blueprint that I use for various things like if the player fell into water to reset their location back on land, etc…

The blueprint the player hits to be teleported:

 ![225109-teleport.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/b/d0b4f593587f2dd4e7fb4b84636c6a713803c2cd.png)

The gameHUD function I use for fade black transitions:

 ![225110-teleport2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/8/e/48e54c56c3bc60073df768e800fedca37131bab4.png)

You don’t see the hit result here because i didn’t use a line trance but the setup is exactly the same once you have the reference. more info here…

> **[Break Hit Result](https://docs.unrealengine.com/5.1/en-US/BlueprintAPI/Collision/BreakHitResult/)**
>
> Break Hit Result

Hope this helps!

---

<div class="post-metadata">

**Author:** ![kishindba](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kishindba](https://forums.unrealengine.com/u/kishindba)\
**Post date:** [January 15, 2018, 2:15pm UTC](https://forums.unrealengine.com/t/teleport-player-by-trigger-click-on-vive-if-specific-object-is-traced/413141/3 "2018-01-15T14:15:34Z")

</div>

thank you very much !

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dceb25d5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dceb25d5](https://forums.unrealengine.com/u/anonymous_user_dceb25d5)\
**Post date:** [January 16, 2018, 1:24am UTC](https://forums.unrealengine.com/t/teleport-player-by-trigger-click-on-vive-if-specific-object-is-traced/413141/4 "2018-01-16T01:24:07Z")

</div>

Definitely! I know the images are a little blurry but the process is straightforward when you really think about it, just have to mess with the blueprint nodes a bit and it always clicks eventually.
