Wanting to create a portal style system that allows two actors to talk to each other in different levels

Hi, I’m new to Unreal and Game Dev in general and I’m trying to figure out how to do something that I’m having difficulty finding information on via forums, and general searching. I’m wanting to create a feature that enables the spawning of two actors in two separate levels. So actor 1 in level 1 will trigger actor 2 to spawn in level 2. Does anyone know how to go about this, or what methods I should look up in the docs to be able to pull this off?

Forgot to mention, these actors need to maintain a relationship so if a player interacts with either of these actors, actor 1 can talk to actor 2 and send data, and actor 2 can send actor 1 data

Hello,

I have some question about this system you want:

  1. Is this actor communication happening real time? OR is it a route system like if you do something to A, then A will become your enemy in level 2?

these actors need to maintain a relationship so if a player interacts with either of these actors, actor 1 can talk to actor 2 and send data, and actor 2 can send actor 1 data

Can you give more detailed explanation about this? Can I assume it something like this: If the player buy Item from NPC A, then the price in NPC B will be higher. Or what you mean is something different?

I’m actually trying to create a portal system, so basically what I’m trying to do (forgive my verbiage as I’m still new to developing and also game dev in general) is have it so that when Portal 1 spawns into a level, it spawns a linked portal which would be Portal 2 in a separate level. When a player then interacts with either of the portals that have a relationship, so Portal 1 or Portal 2, which Portal 1 is in Level 1 and Portal 2 is in Level 2, they will be transported between either. Think how Portals work in the Valve - Portal series, except instead of having these link in the same level and just move you to another location, it takes you to a completely new level. I’ve heard that it isn’t possible to have 2 uWorlds loaded at the same time, but I was wondering if my only option around this is to have each world be a dedicated server, or if there’s a way to actually have 2 uWorlds loaded at the same time without having to go that route. I’ve been looking for days and can’t find a solution, so was hoping asking here would help.

Also yes, communication would happen in real time. Once I get over this hurdle I’ll be able to actually start working on things.

Is this for multiplayer where both levels must exist at the same time? Or would it just be one player traveling between maps?

Multiplayer is my goal, so the worlds would need to exist at the same time. That way if a portal opens on one world, it opens on the other and vice versa. That way players aren’t just teleported to a random location and then there isn’t a portal behind them type of situation.

In that case, yea, you would need to run multiple servers running. Might not need a dedicated server for each one since it is possible to run multiple copies of a game on one machine. Getting them to communicate could be tricky,but if it’s just portals being saved, it might be doable with an external sql database or something which both instances can access.

Or, depending on how big your levels would be, you could just put them both in the same map instead. Then hide the area the player can’t see behind a skybox, via data layers, or some other visual trickery.

The way I planned on doing the portals is either set points, or eventually procedural but have it so the portals have data that can still be pulled. But if multiple servers are needed to accomplish this I’ll figure out how to get that working. I’ve tried the Lyra demos and they seem promising