Pass next level to WorldUnloaded

Wed Sep 08, 2021 9:43 am

Bit of a convenience thing, really, so one can for example look up the levelinfo of the next map and check if we're traversing between maps in same/different hub, or check if the next map resets inventory and run special code for that, and so on. The only alternative would be to use a static thinker to transfer data between one WorldUnloaded event and the next WorldLoaded, but this wouldn't allow you to do stuff BEFORE the actual map transition.

If this is feasible and acceptable, I'd gladly implement it myself, as it's fairly straightforward to add with how things are currently structured (just adding an extra parameter, basically).

Re: Pass next level to WorldUnloaded

Wed Sep 08, 2021 10:01 am

Sounds useful, just do the PR hahaha

Re: Pass next level to WorldUnloaded

Thu Sep 09, 2021 10:30 am

Very well. I'll do this one and three other extra features in separate posts afterwards.

Re: Pass next level to WorldUnloaded

Mon Sep 27, 2021 11:52 am

And as promised here's the pull request.

Re: Pass next level to WorldUnloaded

Fri Oct 01, 2021 7:21 pm

Added by Graf.