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