Skip to content
New issue

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

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

Already on GitHub? # to your account

Added function getCurrentMapName() #613

Open
wants to merge 1 commit into
base: master
Choose a base branch
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

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

Successfully merging this pull request may close these issues.

1 participant