User Tools

Site Tools


4rpl:commands:setunithealrate

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.txt · Last modified: 2021/02/04 10:52 by Karsten75