There are multiple ways you can do this. The way I’d ping-pong that information back and forth would be through the game instance. You’d need to create a custom one and set your game mode to use it; in your project settings. Inside of the GI, set up a variable in it like “Player’s last transform(you’d only need location/rotation and can leave scale at 1) before map transitioning” and probably a boolean like “Has the player recently gone into a house so I know to use custom location or not” or something.
So along these lines:
- Walk into trigger volume and use door
- Get game instance and cast to your custom GI as it, update transform variable in game instance and flag the boolean true
- Load next map
- When you leave that map and go back to the previous map, it will need the main map’s level blueprint to do a check FIRST(begin play), before placing the player.
- The level BP would cast to the game instance and check to see if the boolean is flagged true. If it is, then place the player at the location/angle and unflag the boolean. If it’s not flagged, then spawn the player at a default location (like if you were transitioning between a forest to a town map or something).