GetMapName
From Liberty Unleashed Wiki
This function returns the name of the map.
Syntax
string GetMapName()
Arguments
- None
Example
This example will print some info about the server to the console when the server is started.
function onServerStart() { print( "Server name: " + GetServerName() ); print( "Gamemode: " + GetGamemodeName() ); print( "Map: " + GetMapName() ); print( "MTU size: " + GetMTUSize() ); return 1; }
Notes
The functions print, GetServerName, GetMTUSize, GetGamemodeName and call onServerStart were used in this example. More info about them can be found in corresponding pages.