SpawnEnergySpark (Harvest)
From OxeyeWiki
(Difference between revisions)
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. ...')
(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. |
Example
local id = harvest.getSelectedBuilding():getId() harvest.spawnEnergySpark(id)