3248 {
3249 string text = string.Empty;
3250
3252 text += "Disabled: " + GetIsSimulationDisabled() + "\n";
3253 #ifdef SERVER
3257 #endif
3258
3259 ComponentEnergyManager compEM =
GetCompEM();
3260 if (compEM)
3261 {
3263 text +=
"Switched On: " + compEM.
IsSwitchedOn() +
"\n";
3264 text +=
"Is Working: " + compEM.
IsWorking() +
"\n";
3265 }
3266
3267 return text;
3268 }
proto native float GetLifetime()
bool IsWorking()
Energy manager: Returns true if this device is working right now.
EntityAI GetEnergySource()
Energy manager: Returns the energy source this device is plugged into.
bool IsSwitchedOn()
Energy manager: Returns state of the switch. Whenever the device is working or not does not matter....
float GetWeightEx(bool forceRecalc=false)
returns overall weight of the entity, 'forceRecalc = true' is meant to be used only when debugging,...
proto native float GetLifetime()
Get remaining economy lifetime (seconds)
proto native CEItemProfile GetEconomyProfile()
Get economy item profile (if assigned, otherwise null)
ComponentEnergyManager GetCompEM()