# Spawn Actors in a Hierarchy on a Dedicated Server

**URL:** <https://forums.unrealengine.com/t/spawn-actors-in-a-hierarchy-on-a-dedicated-server/2663260>\
**Category:** Multiplayer & Networking\
**Tags:** spawn, dedicated-server, Replication, unreal-engine, question, CPP\
**Created:** [October 8, 2025, 9:13am UTC](https://forums.unrealengine.com/t/spawn-actors-in-a-hierarchy-on-a-dedicated-server/2663260 "2025-10-08T09:13:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JulianPW](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JulianPW](https://forums.unrealengine.com/u/JulianPW)\
**Post date:** [October 8, 2025, 9:13am UTC](https://forums.unrealengine.com/t/spawn-actors-in-a-hierarchy-on-a-dedicated-server/2663260/1 "2025-10-08T09:13:49Z")

</div>

Working with UE5.3.2, I want to spawn multiple actors in a hierarchy (attached to each other) on a server.  
In C++, I have a server function, that receives integers for the hierarchy and transforms for the spawn transforms for the actors. I tried using _SpawnActor_ directly and _SpawnActorDeferred_ with _FinishSpawningActor._  
When I use my setup without being connected to a dedicated server, the actors all spawn correctly at the correct place with the correct attachment order.  
When I use the setup while being connected to a dedicated server, most actors are not at the correct position. In the level tree of the editor, the actors also seem to not be correctly attached. Progammatically, it looks like the attachment is actually correct (verifying using _GetAttachedParentActor()_ and _GetAttachedActors()_).  
To fix the spawn position, I also tried using a _RepNotify FTransform_ variable for the actor, which I also set on the server. The actors on the clients use that _FTransform_ for _SetActorRelativeTransform()_.  
Both _SpawnActor_ and _AttachToActor/AttachToComponent_ (with _EAttachmentRule::KeepRelative)_ happen in the same server function directly after each other.  
Thank you for your help.

---

<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:** [October 9, 2025, 5:02am UTC](https://forums.unrealengine.com/t/spawn-actors-in-a-hierarchy-on-a-dedicated-server/2663260/2 "2025-10-09T05:02:08Z")

</div>

Have you tried spawning and attaching them on the server?

---

<div class="post-metadata">

**Author:** ![JulianPW](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JulianPW](https://forums.unrealengine.com/u/JulianPW)\
**Post date:** [October 9, 2025, 6:07am UTC](https://forums.unrealengine.com/t/spawn-actors-in-a-hierarchy-on-a-dedicated-server/2663260/3 "2025-10-09T06:07:39Z")

</div>

Yes. All functions related to that (_SpawnActor/SpawnActorDeferred + FinishSpawningActor, AttachToActor/AttachToComponent_) are called on the server in one single function (_UFUNCTION(Server, Reliable)_).  
Logs I have added also show that the actors are spawned on the server. All joining clients also receive the actors spawned.
