GetEnergy

Category: Objects
Since engine version: 1.0 OC (extended in 9.0 OC)

Description

Returns the current energy value of an object. 100% representing the maximum physical value of 100,000

Syntax

int GetEnergy(bool exact);

Parameter

exact:
[opt] If true, the exact energy value is returned (since 9.0 OC).

Remark

For living beings, \"energy\" stands for health, in buildings it stands for electrical charge.
See also: DoEnergy
jwk, 2002-06
Marky, 2018-12