SetBuildingEnabled (Harvest)

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
(Created page with '{{HarvestMethod | setBuildingEnabled(building, setting) | Changes whether a building should be buildable by the player or not. | {{MethodParam|building|String|The building name t...')
 
(One intermediate revision not shown)
Line 5: Line 5:
Changes whether a building should be buildable by the player or not.
Changes whether a building should be buildable by the player or not.
|
|
-
{{MethodParam|building|String|The building name to enable or disable.}
+
{{MethodParam|building|String|The building name to enable or disable.}}
{{MethodParam|setting|Boolean|Set a building being available or not.}}
{{MethodParam|setting|Boolean|Set a building being available or not.}}
|
|
Line 14: Line 14:
harvest.setBuildingEnabled("SPARKPRODUCER", false)
harvest.setBuildingEnabled("SPARKPRODUCER", false)
</pre>
</pre>
 +
 +
=== Resources ===
 +
*[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions]

Latest revision as of 16:16, 2 December 2009

setBuildingEnabled(building, setting)

Changes whether a building should be buildable by the player or not.

Parameter Expected Type Description
building String The building name to enable or disable.
setting Boolean Set a building being available or not.
Returns

Returns nothing.

Harvest Library

Example

harvest.setBuildingEnabled("SPARKPRODUCER", false)

Resources

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox