Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script
DrawMap
Category:
Landscape
Since engine version:
4.9.1.0 GWE
Description
Draws a dynamic map within the specified rectangle. This is done using the same evaluation as with Landscape.txt components.
Syntax
bool
DrawMap (
int
iX,
int
iY,
int
iWdt,
int
iHgt,
string
szMap);
Parameters
iX:
Left border of the rectangle in which to draw the map
iY:
Top border of the rectangle in which to draw the map
iWdt:
Width of the rectangle in which to draw the map
iHgt:
Height of the rectangle in which to draw the map
szMap:
Definition of the dynamic map. The enclosing map { ... } tag must be present.
Remark
As maximum string length in C4Script is limited by internal buffers you should use
DrawDefMap
for very complex maps.
Example
DrawMap(0,0,
LandscapeWidth
(),
LandscapeHeight
()/2,
"map Empty{}"
);
Empties the top half of the map.
See also:
DrawDefMap
Sven2, April 2002
Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script