CheckConstructionSite

Kategorie: Objekte / Erzeugung
Ab Engineversion: 2.0 OC

Beschreibung

Checks whether the given location is suitable for the construction of object_id. The same check is used before creation in CreateConstruction if check_side is true. In local calls the specified position will be an offset to the position of the calling object.

Syntax

bool CheckConstructionSite(id object_id, int xoffset, int yoffset);

Parameter

object_id:
Typ des zu prüfenden Objekts
xoffset:
X-Koordinate
yoffset:
Y-Koordinate

Beispiel

if(CheckConstructionSite(WindGenerator, 150,100))
	Log("It is possible to construct a wind generator at position 150,100.");
Siehe auch: CreateConstruction, FindConstructionSite
Clonkonaut, 2012-03