This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
4rpl:commands:repeat [2024/06/06 02:22] – [Examples] Added a unit-script example. LiteralNoob | 4rpl:commands:repeat [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 27: | Line 27: | ||
# Health regen rate or " | # Health regen rate or " | ||
- | while(GetUnitHealth(self) GetUnitMaxHealth(self) eq) #If unit's current health is equal to it's max health... | + | while(GetUnitHealth(self) GetUnitMaxHealth(self) eq) |
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 |