Index

GenerateEnergy

GenerateEnergy(<-amt)

Description

Generates energy. Does the same thing towers, miners, and collector panels do. The amt is a float in energy generation per second. Internally, the specified amount will be divided by 30. So you should call GenerateEnergy each frame if you want a steady supply.

:NOTE: Due to (INSERT REASON FROM K75), the energy graph does not correctly display the additional energy generation from this API should it be running in a Global Script in the POST setting.

Examples

GenerateEnergy(1)

Index