CheckConstructionSite

Category: Objects / Creation
Since engine version: 2.0 OC

Description

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);

Parameters

object_id:
Type of object to be checked.
xoffset:
X coordinate
yoffset:
Y coordinate

Example

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