User Tools

Site Tools


4rpl:commands:setunithealrate

This is an old revision of the document!


Index

:!: Available in version 1.3 and later.

SetUnitHealRate

SetUnitHealRate(<-unit <-unitHealRate)

Description

Sets the unit's heal rate. The default heal rate is 0.001. This is how much health is recovered per frame. A negative value will reduce unit health over time rather than healing it. A value of 0 for the heal rate means health will not recover over time.

Examples

SetUnitHealRate(self 0)

Index

4rpl/commands/setunithealrate.1612451803.txt.gz · Last modified: 2025/02/14 14:56 (external edit)