# DrawMap

Landscape
5.1 OC
bool
int x Left border of the rectangle in which to draw the map.
int y Top border of the rectangle in which to draw the map.
int width Width of the rectangle in which to draw the map.
int height Height of the rectangle in which to draw the map.
string map Definition of the dynamic map. The enclosing map { ... } tag must be present.
Draws a dynamic map within the specified rectangle over the old landscape. This is done using the same evaluation as with Landscape.txt components.
As maximum string length in C4Script is limited by internal buffers you should use DrawDefMap for very complex maps.
DrawMap(0,0,LandscapeWidth(), LandscapeHeight()/2, "map Earth{overlay{mat = Earth;};};");
Fills the top half of the map with earth.
DrawDefMap
Sven2
2002-04