Jass:GetItemOfTypeFromUnitBJ
Aus Mappedia
| Funktion: GetItemOfTypeFromUnitBJ | |
|---|---|
| Parameter: | unit integer |
| Rückgabewert: | item |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function GetItemOfTypeFromUnitBJ takes unit whichUnit, integer itemId returns item local integer index = GetInventoryIndexOfItemTypeBJ(whichUnit, itemId) if (index == 0) then return null else return UnitItemInSlot(whichUnit, index - 1) endif endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| unit | whichUnit | |
| integer | itemId |
