SpawnEnergySpark (Harvest)

From OxeyeWiki

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