CheckConstructionSite
Objects
Creation
2.0 OC
bool
id
object_id
Type of object to be checked.
int
xoffset
X coordinate
int
yoffset
Y coordinate
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.
if(CheckConstructionSite(WindGenerator, 150,100))
Log("It is possible to construct a wind generator at position 150,100.");
CreateConstruction
FindConstructionSite
Clonkonaut2012-03