GetBuilding (Harvest)

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
(Created page with '{{HarvestMethod | getBuilding(id) | Fetches a building, or nil if the building doesn't exist. | {{MethodParam|id|Number|The id of the building to retrieve the building for.}} | R...')
 
Line 10: Line 10:
=== Example ===
=== Example ===
<pre>
<pre>
-
building = harvest.getBuilding(id)
+
local building = harvest.getBuilding(id)
</pre>
</pre>
=== Resources ===
=== Resources ===
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]

Latest revision as of 20:08, 2 December 2009

getBuilding(id)

Fetches a building, or nil if the building doesn't exist.

Parameter Expected Type Description
id Number The id of the building to retrieve the building for.
Returns

Returns the building of a given id.

Harvest Library

Example

local building = harvest.getBuilding(id)

Resources

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox