# EnergyCheck

Objects
Status
4.6.5.0 CP
bool
int energy Requested energy value.
Returns whether an object's energy value is greater than or equal to the specified level. If the game rule "Energy Usage" is not enabled, this function always returns true. Otherwise, this call will also create an energy demand which will cause connected energy lines to transfer energy into this object.
if
(EnergyCheck(10000)) { DoEnergy(-10000); SetAction("Working"); }
Starts the activity "Working" if sufficient energy is available.
CheckEnergyNeedChain
GetEnergy
DoEnergy
Sven2
2001-11