I’m trying to make an basic mmo like game.
I have different levels. My problem is when i’m changing the level for one character with APlayerController::ClientTravel everything works fine, but i don’t know how to spawn an actor into this level.
I already tried to use UWorld::SpawnActor like this (Will be called on server (RPC), because i need the actor on the server)
SpawnParameters.OverrideLevel = Controller->GetLevel();
return World->SpawnActor(ActorClass, &Location, &Rotation, SpawnParameters);
but it will spawn the actor in the level before ClientTravel.