setMapName: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
|name=setMapName | |name=setMapName | ||
|version=1.4.0.1 | |version=1.4.0.1 | ||
|trusted=true | |||
|description= | |description= | ||
Changes the name of a specified map | Changes the name of a specified map. | ||
|usage= | |usage= | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> |
Revision as of 12:17, 3 May 2016
setMapName() Function
Note: This function can only be used in a Trusted Macro
• Introduced in version 1.4.0.1
Changes the name of a specified map.
Usage
setMapName(oldMapName, newMapName)
Parameters
oldMapName
- String specifying the current name of the map you wish to rename.newMapName
- A string containing the name to which you want it changed.
Examples
[r:setMapName("Grasslands","Map1")]