# Replicated Alternative to LoadLevelInstance?

**URL:** <https://forums.unrealengine.com/t/replicated-alternative-to-loadlevelinstance/681102>\
**Category:** C++\
**Tags:** unreal-engine, UE5-0, Multiplayer, CPP, question\
**Created:** [October 31, 2022, 7:23pm UTC](https://forums.unrealengine.com/t/replicated-alternative-to-loadlevelinstance/681102 "2022-10-31T19:23:35Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![anonymous\_user\_c2dfcd1a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c2dfcd1a](https://forums.unrealengine.com/u/anonymous_user_c2dfcd1a)\
**Post date:** [November 2, 2022, 7:09pm UTC](https://forums.unrealengine.com/t/replicated-alternative-to-loadlevelinstance/681102/8 "2022-11-02T19:09:32Z")

</div>

I’ve discovered what seems to be the solution in a post on another thread, from user

> [@Dynamic level streaming with multiplayer support](https://forums.unrealengine.com/t/dynamic-level-streaming-with-multiplayer-support/79517/35):
>
> What I have found, If you are using the LoadLevelInstanceBySoftObjectPtr (c++), make sure the NAME attribute is exactly the same for clients and the Server. Example: LevelName = FName(TEXT(“MyLevelStreamed”)); ULevelStreamingDynamic::LoadLevelInstanceBySoftObjectPtr(this, LevelToStream, RootComponent-\>GetComponentLocation(), RootComponent-\>GetComponentRotation(), bLevelInstanceSuccess, LevelName.ToString()); After found this, I finally understood the logic behind. If you have an item inside …

Essentially, if you override the package names of the levels to match and spawn the same levels on client and server, the objects within that level are replicated. I don’t think there is any way to have just the server do the spawning and have it be replicated on the clients, like with SpawnActor, but this method is close enough for me.

---

_[View the full topic](https://forums.unrealengine.com/t/replicated-alternative-to-loadlevelinstance/681102)._
