Jass:SetUnitLifePercentBJ
Aus Mappedia
| Funktion: SetUnitLifePercentBJ | |
|---|---|
| Parameter: | unit real |
| Rückgabewert: | nothing |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function SetUnitLifePercentBJ takes unit whichUnit, real percent returns nothing call SetUnitState(whichUnit, UNIT_STATE_LIFE, GetUnitState(whichUnit, UNIT_STATE_MAX_LIFE) * RMaxBJ(0,percent) * 0.01) endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| unit | whichUnit | |
| real | percent |
