# CreateConstruction

Objects
Creation
5.1 OC
object
id object_id Type of object to be created.
int xoffset X coordinate
int yoffset Y coordinate
int owner Owner of the new object (valid player number or NO_OWNER for no-owner).
int completion Determines the initial completion of the object in percent (minimum 1).
bool adjust_terrain Determines whether the landscape at the creation site has to be adjusted to the objects basement.
bool check_site First checks the specified site for suitability.
Should be used instead of CreateObject to create a building or construction site. In local calls the specified position will be an offset to the position of the calling object. If check_site is 1, the site is checked for suitability before creating the object. If the site is not suitable (e.g. rough ground or not enough space), a message is displayed above the calling object and the function returns `nil`.
CreateConstruction(WindGenerator, 150,100, 0,100,1 );
Creates a complete wind generator at position 150/100 for player 1 and adjusts the landscape to the building.
CreateConstruction(SteamEngine, 200,100, NO_OWNER, 30,1 );
Creates a steam engine construction finished by 30% site at position 200/100 with no owner, also adjusting the landscape.
CreateObject
CreateContents
RemoveObject
springer
2002-04