<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.oxeyegames.com/wiki/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.oxeyegames.com/wiki/index.php?action=history&amp;feed=atom&amp;title=SpawnBuilding_%28Harvest%29</id>
		<title>SpawnBuilding (Harvest) - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.oxeyegames.com/wiki/index.php?action=history&amp;feed=atom&amp;title=SpawnBuilding_%28Harvest%29"/>
		<link rel="alternate" type="text/html" href="http://www.oxeyegames.com/wiki/index.php?title=SpawnBuilding_(Harvest)&amp;action=history"/>
		<updated>2026-05-06T02:30:09Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://www.oxeyegames.com/wiki/index.php?title=SpawnBuilding_(Harvest)&amp;diff=263&amp;oldid=prev</id>
		<title>166 MMX: Created page with '{{HarvestMethod | spawnBuilding(type, x, y[, progress]) | Places a new building in the game. The &quot;type&quot; parameter is the string ID of the building, which is &quot;SPARKPRODUCER&quot;, &quot;SPA...'</title>
		<link rel="alternate" type="text/html" href="http://www.oxeyegames.com/wiki/index.php?title=SpawnBuilding_(Harvest)&amp;diff=263&amp;oldid=prev"/>
				<updated>2009-12-02T21:29:39Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#39;{{HarvestMethod | spawnBuilding(type, x, y[, progress]) | Places a new building in the game. The &amp;quot;type&amp;quot; parameter is the string ID of the building, which is &amp;quot;SPARKPRODUCER&amp;quot;, &amp;quot;SPA...&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{HarvestMethod&lt;br /&gt;
|&lt;br /&gt;
spawnBuilding(type, x, y[, progress])&lt;br /&gt;
|&lt;br /&gt;
Places a new building in the game. The &amp;quot;type&amp;quot; parameter is the string ID of the building, which is &amp;quot;SPARKPRODUCER&amp;quot;, &amp;quot;SPARKMOVER&amp;quot;, &amp;quot;HARVESTER&amp;quot;, &amp;quot;DEFENSETOWER&amp;quot;, &amp;quot;MISSILETURRET&amp;quot;, &amp;quot;EAGLEUPGRADE&amp;quot; and &amp;quot;TEMPESTUPGRADE&amp;quot; for the seven default buildings. Check the creativeBuildings.txt file in the sandbox folder to find the creative buildings' ID strings.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;progress&amp;quot; parameter is used to define whether the building should be in a construction box or completed. The default is 1.0, which means it will be placed completed. Values less than 1.0 will place a construction box instead, with a certain amount of energy already.&lt;br /&gt;
|&lt;br /&gt;
{{MethodParam|type|Number|The building identifier name to spawn.}}&lt;br /&gt;
{{MethodParam|x|Number|The x world coordinate.}}&lt;br /&gt;
{{MethodParam|y|Number|The y world coordinate.}}&lt;br /&gt;
{{MethodParam|progress|Number|The progress in percent from 0 to 1.}}&lt;br /&gt;
|&lt;br /&gt;
Returns nothing.&lt;br /&gt;
}}&lt;br /&gt;
=== Example ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-- Place a half-completed eagle turret in the game&lt;br /&gt;
harvest.spawnBuilding(&amp;quot;EAGLEUPGRADE&amp;quot;, 0, 0, 0.5)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Resources ===&lt;br /&gt;
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]&lt;/div&gt;</summary>
		<author><name>166 MMX</name></author>	</entry>

	</feed>