Category: Objects / Status
Since engine version: 1.0 OC
Adjusts the energy value of an object. Energy signifies life energy in living beings.
void DoEnergy(int change, bool exact, int damage_type, int caused_by);
- Change of the energy value (positive or negative) in percent of the maximum value. 100% correspond to the maximum physical value of 100,000.
- [opt] If
true, change is applied to the exact energy value.
- [opt] Damage cause specification which is to be passed to Fx*Damage callbacks of effects (see effect documentation). Default is FX_Call_EngScript.
- [opt] Number of the player who has caused the damage.
Gives 1 more energy to the selected clonk.
See also: GetEnergy