Jass:UnitInventoryCount
Aus Mappedia
| Funktion: UnitInventoryCount | |
|---|---|
| Parameter: | unit |
| Rückgabewert: | integer |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function UnitInventoryCount takes unit whichUnit returns integer local integer index = 0 local integer count = 0 loop if (UnitItemInSlot(whichUnit, index) != null) then set count = count + 1 endif set index = index + 1 exitwhen index >= bj_MAX_INVENTORY endloop return count endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| unit | whichUnit |

russische Team, stehen wir nun im Halbfinale vor einem weiteren Giganten der e-Sports-Szene:
Finnland! Die Skandinavier hatten es im Gegensatz zu unserem