Hi, I’m using World Composition in a dedicated server setup. My world is made of sublevels. The main level is called “Yliakum”, and sublevels are named like: “Yliakum_X01_Y01”, “Yliakum_X01_Y02”, …
I need to know in which of the sublevels my player currently is.
Using this code, unfortunately I get the top level (persistent level) and not the current sublevel
FString MapPackageLongName = GetWorld()->GetCurrentLevel()->GetOutermost()->GetName();
The print out says just “Yliakum”.
Screenshot attached shows the setup.
To explain why I need it, I want to trigger different weather based on the level the player is in. Getting the current player level I can then render around the player rain or snow particles.