Jass:UnitAddItemByIdSwapped – Mappedia

Jass:UnitAddItemByIdSwapped

Aus Mappedia
Wechseln zu: Navigation, Suche
Funktion: UnitAddItemByIdSwapped
Parameter: integer
unit
Rückgabewert: item
Autor: Blizzard
Quelle: Blizzard.j
Synchron: Unbekannt



Code

function UnitAddItemByIdSwapped takes integer itemId, unit whichHero returns item
    // Create the item at the hero's feet first, and then give it to him.
    // This is to ensure that the item will be left at the hero's feet if
    // his inventory is full. 
    set bj_lastCreatedItem = CreateItem(itemId, GetUnitX(whichHero), GetUnitY(whichHero))
    call UnitAddItem(whichHero, bj_lastCreatedItem)
    return bj_lastCreatedItem
endfunction

Parameter

Typ Name Beschreibung
integer itemId
unit whichHero
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Warcraft-Mapping
Werkzeuge