SpawnEnergySpark (Harvest)

From OxeyeWiki

Revision as of 22:48, 2 December 2009 by 166 MMX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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