Skip to content

Added function getCurrentMapName() #613

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

PrimelPrime
Copy link
Contributor

@PrimelPrime PrimelPrime commented Mar 21, 2025

This can be useful if you want to save data directly into a map from an external resource in conjunction with quickSaveResource, saveResource, onMapOpened etc.

I couldn't find anything else that currently does this?

Main issue being that you get nil on your var if you can only use the above events to fetch the map name.
getCurrentMapName would simply return loadedMap and would always be accessible without reopening map when restarting the resource you are working on

exports["editor_main"]:getCurrentMapName() --returns map name or false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant