Download

How would I get the closest world composition level from a given actor in the world?

Hey everyone!

I’m currently fiddling with a respawn system that requires me to place Graveyard actors at arbitrary locations around an open world utilizing the world composition. Now, this raises a couple of issues when it comes to level loading, but the primary thing is that sometimes the level doesn’t load fast enough for the player, and the player falls through the world. To solve this, I would like to get the closest streaming WC level from a given actor (the Graveyard actor, in this case) and preload it before teleporting the player.

Is this possible? I would prefer to do it in C++.