Skip to content

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