# CheckEnergyNeedChain

Objects
Status
4.6.5.0 CP
bool
Checks whether any energy user connected to the specified object currently requires energy. The search will also include indirectly connected objects (via multiple lines).
The search is performed only in the direction in which energy is also transferred, meaning from suppliers to users.
if
(CheckEnergyNeedChain()) SetAction("Burning");
Script for a power plant: if any of the connected users needs energy, the furnace is started.
EnergyCheck
GetEnergy
DoEnergy
Sven2
2003-06