# Multiplayer actor spawn twice on client

**URL:** <https://forums.unrealengine.com/t/multiplayer-actor-spawn-twice-on-client/937424>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [April 14, 2023, 1:46am UTC](https://forums.unrealengine.com/t/multiplayer-actor-spawn-twice-on-client/937424 "2023-04-14T01:46:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bagby\_NK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bagby\_NK](https://forums.unrealengine.com/u/Bagby_NK)\
**Post date:** [April 14, 2023, 1:46am UTC](https://forums.unrealengine.com/t/multiplayer-actor-spawn-twice-on-client/937424/1 "2023-04-14T01:46:14Z")

</div>

Hello, when spawn actor on client, i`m using dedicated server, actor spawn twice. Help solve this problem

---

<div class="post-metadata">

**Author:** ![FrostyJas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostyjas/32/1194640_2.png) [@FrostyJas](https://forums.unrealengine.com/u/FrostyJas)\
**Post date:** [April 14, 2023, 1:51am UTC](https://forums.unrealengine.com/t/multiplayer-actor-spawn-twice-on-client/937424/2 "2023-04-14T01:51:08Z")

</div>

Hello @Bagby_NK

Welcome back to the forums! I took a look around in regards to the issue that you’re experience with the duplicate actor spawns. I pulled a post from an older thread that I think may be of use with this. Here is the [post](https://forums.unrealengine.com/t/4-14-spawn-actor-from-class-replicates-twice-on-client/377880). I hope that this is helpful! If not, respond back and we can check some other fixes.

---

<div class="post-metadata">

**Author:** ![Bagby\_NK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bagby\_NK](https://forums.unrealengine.com/u/Bagby_NK)\
**Post date:** [April 14, 2023, 1:55am UTC](https://forums.unrealengine.com/t/multiplayer-actor-spawn-twice-on-client/937424/3 "2023-04-14T01:55:27Z")

</div>

This answer does not solve the problem, i`m using UE 5.1

---

<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 14, 2023, 2:47am UTC](https://forums.unrealengine.com/t/multiplayer-actor-spawn-twice-on-client/937424/4 "2023-04-14T02:47:19Z")

</div>

Multiplayer actors need to be spawned by the Authoritative Proxy… aka the servers copy of your character.

Some action that’s going to spawn the actor → Switch has Authority[AUTH]: Spawn Actor.

OR

Input pressed → Switch has Authority[Remote] → RPC\_SERVER\_SPAWN

RPC\_Server\_Spawn → Spawn Actor

---

<div class="post-metadata">

**Author:** ![Bagby\_NK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bagby\_NK](https://forums.unrealengine.com/u/Bagby_NK)\
**Post date:** [April 14, 2023, 3:45am UTC](https://forums.unrealengine.com/t/multiplayer-actor-spawn-twice-on-client/937424/5 "2023-04-14T03:45:34Z")

</div>

This is my PC and GM

 ![pc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/7/f57efbf179c7fa3830f0636a26dacda8bc140b73.png)

 ![2023-04-14_10-42-13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/1/9b10b52cd5757e9e88378132364f0ac364b22256.png)

---

<div class="post-metadata">

**Author:** ![Chatouille](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chatouille/32/1194622_2.png) [@Chatouille](https://forums.unrealengine.com/u/Chatouille)\
**Post date:** [April 14, 2023, 8:39am UTC](https://forums.unrealengine.com/t/multiplayer-actor-spawn-twice-on-client/937424/6 "2023-04-14T08:39:28Z")

</div>

Your player/pawn class most likely replicates itself already, so you don’t need a Multicast to spawn it everywhere. Just spawn it on server-side, and it will replicate to everyone.

In your PC class, simply remove replication from the “SpawnPlayer” event. The rest looks fine.

You should also remove replication from GameMode’s “SpawnPlayer” event as it has absolutely no effect.

---

<div class="post-metadata">

**Author:** ![BDC\_Patrick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bdc_patrick/32/1104221_2.png) [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Post date:** [April 14, 2023, 8:39am UTC](https://forums.unrealengine.com/t/multiplayer-actor-spawn-twice-on-client/937424/7 "2023-04-14T08:39:49Z")

</div>

No… don´t use the Multicast.

In your Srv\_SpawnPlayer, get the GameMode and Spawn the Player. Get rid of the whole SpawnPlayer Event.

Reason:  
The GameMode is only existing on the ServerSide… so… if you Call this on a Multicast Event, it will redo the spawning for all Clients, for all Characters… so… twice…

You don´t need to multicast a Spawn via GameMode, cause a Server sided spawn is always replicated to all clients, without you need to do anything.

---

<div class="post-metadata">

**Author:** ![Bagby\_NK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bagby\_NK](https://forums.unrealengine.com/u/Bagby_NK)\
**Post date:** [April 14, 2023, 9:03am UTC](https://forums.unrealengine.com/t/multiplayer-actor-spawn-twice-on-client/937424/8 "2023-04-14T09:03:34Z")

</div>

Thank you for your participation

PC

 ![pc2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/e/0/5e0905d5c9f12e60bf8d4811c3efb833a4eb2906.png)  
GM  
 ![gm2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/8/e/e8ecfec97435c2f8326d6e4499c7a66ec880383a.png)  
Result  
 ![res1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/c/1/4c1234fd6ff9c43e6b87400e8ebb093b0112d678.png)  
 ![res2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/6/d06c6831ae1a329670abc02a8580831d6ca3d77a.png)  
should be 2 cubes

---

<div class="post-metadata">

**Author:** ![ruigol](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ruigol/32/964789_2.png) [@ruigol](https://forums.unrealengine.com/u/ruigol)\
**Post date:** [April 26, 2024, 8:41pm UTC](https://forums.unrealengine.com/t/multiplayer-actor-spawn-twice-on-client/937424/9 "2024-04-26T20:41:02Z")

</div>

I’ve been having the same issue where the client is seeing duplicates of a spawned actor, I did what you did here (begin play \> switch has authority (remote) \> custom event (executes on server) \> spawn logic)

All of a sudden it spawns just 1 actor for the host and for the client… everything i thought i knew tells me I should have used Authority, not Remote… Can anyone explain why it only works when you call the custom server event from the remote switch?

---

<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:** [May 2, 2024, 1:10am UTC](https://forums.unrealengine.com/t/multiplayer-actor-spawn-twice-on-client/937424/10 "2024-05-02T01:10:25Z")

</div>

It depends on which Proxy you want to execute the code.

If you want Players (Autonomous) or Copies of opponents/you (Sims) you use Remote.  
If you want the Server to execute the code you use Authority.

So if you are running a switch has authority on Begin Play and you want the Server to do something when it spawns the actor… use Auth. Otherwise use remote for Autonomous and Simulated Proxy execution.

Double click the switch has authority node and it will open the macro. It’s literally just checking on who has network authority.
