04-26-2025 08:20 AM - edited 04-26-2025 09:19 AM
I hope that this is an easy question.
I want to get the name of the current sublevel.
When I run this.world.name.get() in a sublevel script, I just get the name of the parent world. So how do I get the sublevel name? I need this for scoring in my game.
My world allows multiple sublevels to be loaded. So I'm not sure that a global broadcast or variable would work. I basically need to find out what sublevel a script is running in.
Solved! Go to Solution.
04-26-2025 10:21 AM
I think I may have figured out a hack. The scripts are all attached to triggers and since the sublevels all have fixed positions, I can use the trigger positions to determine what sublevel they are running in. Works for me, but something like this.sublevel.name.get() would be easier.
04-26-2025 10:21 AM
I think I may have figured out a hack. The scripts are all attached to triggers and since the sublevels all have fixed positions, I can use the trigger positions to determine what sublevel they are running in. Works for me, but something like this.sublevel.name.get() would be easier.