When using seamless travel, events like OnPostLogin don’t get called in the new GameMode, but my PlayerController array - a variable in my gamemode - doesn’t survive the trip either. How do I store this array so the new map’s GameMode can access it? I was thinking of storing it in the GameInstance, but I’d probably run into some type issues - I’d be storing LobbyControllers when the new map expects GameplayControllers.
I know the actual playercontrollers are converted to the new type by the engine during seamless travel. How do I get the new array to populate my array? Can I convert the old controllers to the corresponding new ones?
Normally (in the lobby), the array is populated as players log in, using the given controller from the OnPostLogin event. Obviously I can’t do that with seamless travel.