SpawnEnergySpark (Harvest)

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
166 MMX (Talk | contribs)
(Created page with '{{HarvestMethod | spawnEnergySpark(building) | Creates an energy spark on top of the given building. The spark will select a random target within spark range and travel to that. ...')

Latest revision as of 22:48, 2 December 2009

spawnEnergySpark(building)

Creates an energy spark on top of the given building. The spark will select a random target within spark range and travel to that.

Parameter Expected Type Description
building Number The building identifier number to spawn a energy spark at.
Returns

Returns nothing.

Harvest Library

Example

local id = harvest.getSelectedBuilding():getId()
harvest.spawnEnergySpark(id)

Resources

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox