# Pawn is not replicated for "Teleport" function

**URL:** <https://forums.unrealengine.com/t/pawn-is-not-replicated-for-teleport-function/487829>\
**Category:** Community & Industry Discussion\
**Tags:** Replication, replicate, teleport, unreal-engine, player, pawn, question\
**Created:** [August 22, 2021, 4:03pm UTC](https://forums.unrealengine.com/t/pawn-is-not-replicated-for-teleport-function/487829 "2021-08-22T16:03:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vladutstefan27](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vladutstefan27](https://forums.unrealengine.com/u/vladutstefan27)\
**Post date:** [August 22, 2021, 4:03pm UTC](https://forums.unrealengine.com/t/pawn-is-not-replicated-for-teleport-function/487829/1 "2021-08-22T16:03:38Z")

</div>

Hello. I’ve been trying to replicate the player (its pawn) after attempting to teleport him in a particular place on the level, but it fails. Neither works with “SetActorLocation”

I’m trying to do this through a Widget BP.  
Accessing a function with a replicating (Multicast/OnServer) custom event from the Player BP doesnt do the thing; neither does creating a replicating custom event in the Widget BP itself and referencing to the “owning pawn”.

This is what I meant: [https://i.imgur.com/VCDKCa8.png](https://i.imgur.com/VCDKCa8.png)  
On Player BP: [https://i.imgur.com/lPg1Aev.png](https://i.imgur.com/lPg1Aev.png)

With both methods it works offline/Standalone, but when i try to do this online/As Client, it won’t work :(. The pawn doesn’t have authority.  
What should I do to allow the pawn to have authority to teleport and replicate this on the server?

---

<div class="post-metadata">

**Author:** ![vladutstefan27](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vladutstefan27](https://forums.unrealengine.com/u/vladutstefan27)\
**Post date:** [August 22, 2021, 4:42pm UTC](https://forums.unrealengine.com/t/pawn-is-not-replicated-for-teleport-function/487829/2 "2021-08-22T16:42:10Z")

</div>

User “LeafBranchGames” from reddit helped me out greatly!

> Event int func teleport needs to be  
> set to replication method “run on  
> server”.
> 
> The widget one will never work.
> 
> So to explain this; a multicast is an  
> event that must be run on a server to  
> work. Only server is allowed to do a  
> multicast. That is why the widget one  
> fails, because widgets only exist on  
> clients.
> 
> So to be sure the server is calling  
> the multicast, you need to have  
> controlled the flow to make sure that  
> happens. For example by having the  
> “int func teleport” event be “run on  
> server”. Because then when a client is  
> running its code, and get to the “int  
> func teleport” call, then it will send  
> it to the server to execute, it in  
> turn will then call a multicast which  
> in turn informs all clients about  
> whatever code is in the multicast.
> 
> Make sense?
> 
> I have a few multiplayer replication  
> tutorials if you want a more thorough  
> explanation here:  
> [https://youtu.be/QW\_eROeV5WA](https://youtu.be/QW_eROeV5WA)

So yeah, the solution was calling it from the Player BP and use a custom event with “RunOnServer” not “Multicast”. Running from the Widget would’ve never worked.
