SpawnEnergySpark (Harvest)
From OxeyeWiki
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)