This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
4rpl:commands:while [2024/06/05 22:23] – [Examples] LiteralNoob | 4rpl:commands:while [2024/06/11 12:16] (current) – Kalli | ||
---|---|---|---|
Line 29: | Line 29: | ||
# Health regen rate or " | # Health regen rate or " | ||
- | while(GetUnitHealth(self) GetUnitMaxHealth(self) | + | while eq(GetUnitHealth(self) GetUnitMaxHealth(self)) |
repeat | repeat | ||
SetUnitMaxHealth(self GetUnitMaxHealth 0.5 add) #Add 0.5 points of max health to the unit | SetUnitMaxHealth(self GetUnitMaxHealth 0.5 add) #Add 0.5 points of max health to the unit |