# Teleportation in Multiplayer

**URL:** <https://forums.unrealengine.com/t/teleportation-in-multiplayer/330203>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [August 28, 2015, 2:42pm UTC](https://forums.unrealengine.com/t/teleportation-in-multiplayer/330203 "2015-08-28T14:42:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Notti](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Notti](https://forums.unrealengine.com/u/Notti)\
**Post date:** [August 28, 2015, 2:42pm UTC](https://forums.unrealengine.com/t/teleportation-in-multiplayer/330203/1 "2015-08-28T14:42:28Z")

</div>

Hello,  
I recently started to create a multiplayer game and knowing nothing about programming I used the BP system. Now when I try to teleport my character as a client I only teleport for the briefest of moments like a tick or so and then I get back to my origin position. When running on the server however it works perfectly. Same thing happens when I want to destroy an actor: works on server but no on client. I want to create an respawn system where the character is destroyed and then created and teleported to the spawn position. I tried using this system both in the level blueprint and thirdpersoncharacter BP. I recreated the basics of the system in a new thirdperson project and encountered the same problem. So after looking around on the internet and rewatching all the guides I can’t seem to solve the issue.  
I hope you can help me in my struggle.  
Thanks in advance!alt text

 ![56206-problem2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/b/2/6b216611db458484e3c8124420d374162ab51ff1.png)

 ![56209-bp_teleport.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/0/7e00ba35516c164d800b533c4eaa57c486afc15b.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_359f4d3c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_359f4d3c](https://forums.unrealengine.com/u/anonymous_user_359f4d3c)\
**Post date:** [August 28, 2015, 4:07pm UTC](https://forums.unrealengine.com/t/teleportation-in-multiplayer/330203/2 "2015-08-28T16:07:23Z")

</div>

Since the actors are replicated from the server to client (not the other way around!), you’ll need to execute all actions that should affect all players on the server.

Basically, in addition to the _Teleport function_, create a _custom event_ (in the same Blueprint) that calls the matching function. In the Details panel of the event, set the _Replicates_ property to _Run On Server_. Then replace your current function call with a call to the event instead.

 ![56223-customteleporteventonserver.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/f/3/7f33cb3a5f6f84980958a47d5ebc2f7533844c46.png)

The server will take care of moving the character and then, because the characters and their movement are replicated, inform all clients about the updated location.

The same applies to spawning and destroying actors.

I found this video series extremely helpful:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

Also, right now your characters will always teleport into a fixed direction. If you want to make this depend on their current rotation, you can use the _GetForwardVector_:

> **[Blink/Teleport](https://forums.unrealengine.com/questions/291875/blinkteleport.html)**
>
> Hello guys, I was having fun with the blueprint system in recent weeks and was trying to implement a skill flash \\ teleport a short distance to where the model is looking (like this UE4 Blueprint Blink/Teleport Test - YouTube). Can anyone help me...

Good luck!

PS: Try cropping your screenshots. They’ve got these huge white borders right now.

---

<div class="post-metadata">

**Author:** ![Notti](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Notti](https://forums.unrealengine.com/u/Notti)\
**Post date:** [August 28, 2015, 11:22pm UTC](https://forums.unrealengine.com/t/teleportation-in-multiplayer/330203/3 "2015-08-28T23:22:32Z")

</div>

Thanks Alot! Worked like a charm. WIll definetely take a look at the tutorial again.  
Take care and once again thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_99ac30aa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_99ac30aa](https://forums.unrealengine.com/u/anonymous_user_99ac30aa)\
**Post date:** [March 8, 2016, 1:21am UTC](https://forums.unrealengine.com/t/teleportation-in-multiplayer/330203/4 "2016-03-08T01:21:56Z")

</div>

I seem to be having a similar issue, that this soluition did not solve.

I am trying to create function in which the player can push a button that will teleport them to a room, and then the same button teleports them back exactly where they came from.

This is the blueprint I am using on the level.

 ![81326-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/6/84622ea043145692d0dc08a08dd75bfc1403ccd6.png)

The teleporting works perfectly for the first player  
but any other player who connects to the level does not teleport.

It seems to me I have to somehow reference which player is calling the teleport function? perhaps with the player index?  
I dunno ☹

any help would be great.

Thanks

---

<div class="post-metadata">

**Author:** ![indygoof](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@indygoof](https://forums.unrealengine.com/u/indygoof)\
**Post date:** [March 8, 2016, 11:56am UTC](https://forums.unrealengine.com/t/teleportation-in-multiplayer/330203/5 "2016-03-08T11:56:08Z")

</div>

You should code stuff like that in the Level Blueprint. The Level Blueprint is the same instance for all players in multiplayer, and you are referencing the PlayerPawn for the Player number 0 directly.

It would be better and easier if you would code this in your playercharacter directly.

Cheers,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_99ac30aa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_99ac30aa](https://forums.unrealengine.com/u/anonymous_user_99ac30aa)\
**Post date:** [March 8, 2016, 9:16pm UTC](https://forums.unrealengine.com/t/teleportation-in-multiplayer/330203/6 "2016-03-08T21:16:35Z")

</div>

I tried that, and had difficulty referencing a target from within the player…

I’ll try again, I suppose. 😕

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_99ac30aa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_99ac30aa](https://forums.unrealengine.com/u/anonymous_user_99ac30aa)\
**Post date:** [March 8, 2016, 10:50pm UTC](https://forums.unrealengine.com/t/teleportation-in-multiplayer/330203/7 "2016-03-08T22:50:05Z")

</div>

Ok. Got 'er going… thank you.

This incorporates my needs and the fix required to make it work in multiplayer

 ![81448-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/1/c/61cedb384438c301ef5e902e20b040c32a8a9e64.png)

---

<div class="post-metadata">

**Author:** ![BamaGame](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BamaGame](https://forums.unrealengine.com/u/BamaGame)\
**Post date:** [April 2, 2021, 4:09am UTC](https://forums.unrealengine.com/t/teleportation-in-multiplayer/330203/8 "2021-04-02T04:09:08Z")

</div>

I made it for you 🙂  
First I must what is problem.it is “Replicate Movement”!  
I try some way and finally find 1 solution!  
I know it’s ridiculous, but there’s a way to solve that problem without change the replicate setting!

 ![334450-servertp.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/0/6/5067bc414b40b3971968294df1185b667aa684e0.jpeg)

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [April 2, 2021, 9:31pm UTC](https://forums.unrealengine.com/t/teleportation-in-multiplayer/330203/9 "2021-04-02T21:31:35Z")

</div>

For client responsiveness (not waiting on the server cause high ping) you can teleport locally, then call server RPC.
